From: H Hartley Sweeten Date: Wed, 22 Oct 2014 22:36:49 +0000 (-0700) Subject: staging: comedi: addi_apci_3xxx: use comedi_buf_write_samples() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6aec0f9af4c769fd104294745467fd8399548da7;p=linux-beck.git staging: comedi: addi_apci_3xxx: use comedi_buf_write_samples() For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_3xxx.c b/drivers/staging/comedi/drivers/addi_apci_3xxx.c index fe9ac2d72694..db3ee9c429ad 100644 --- a/drivers/staging/comedi/drivers/addi_apci_3xxx.c +++ b/drivers/staging/comedi/drivers/addi_apci_3xxx.c @@ -371,7 +371,7 @@ static irqreturn_t apci3xxx_irq_handler(int irq, void *d) writel(status, dev->mmio + 16); val = readl(dev->mmio + 28); - comedi_buf_put(s, val); + comedi_buf_write_samples(s, &val, 1); s->async->events |= COMEDI_CB_EOA; comedi_handle_events(dev, s);