staging: comedi: addi_apci_3xxx: use comedi_buf_write_samples()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 22 Oct 2014 22:36:49 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 08:03:12 +0000 (16:03 +0800)
For aesthetics, use comedi_buf_write_samples() to add the sample to the
async buffer.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_3xxx.c

index fe9ac2d7269427bdd1712ca0143359e3eceb52e0..db3ee9c429ada8325db7dda9666caacf736d8238 100644 (file)
@@ -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);
This page took 0.027613 seconds and 5 git commands to generate.