]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: comedi: dmm32at: use comedi_buf_write_samples()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 22 Oct 2014 22:36:54 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 08:03:13 +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/dmm32at.c

index 7e69d317b7efb7a0f501c7bac84cb3973fb1effa..fc2c0db739997549eaf542da79fcb03555803c45 100644 (file)
@@ -501,7 +501,7 @@ static irqreturn_t dmm32at_isr(int irq, void *d)
 
                        /* invert sign bit to make range unsigned */
                        samp = ((msb ^ 0x0080) << 8) + lsb;
-                       comedi_buf_put(s, samp);
+                       comedi_buf_write_samples(s, &samp, 1);
                }
 
                if (devpriv->ai_scans_left != 0xffffffff) {     /* TRIG_COUNT */