staging: comedi: dmm32at: 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 <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
H Hartley Sweeten 2014-10-22 15:36:54 -07:00 committed by Greg Kroah-Hartman
parent 9a84a7d2e7
commit 1700529b24

View 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 */