Skip to content

Commit 1700529

Browse files
bigguinessgregkh
authored andcommitted
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 <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9a84a7d commit 1700529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/comedi/drivers/dmm32at.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ static irqreturn_t dmm32at_isr(int irq, void *d)
501501

502502
/* invert sign bit to make range unsigned */
503503
samp = ((msb ^ 0x0080) << 8) + lsb;
504-
comedi_buf_put(s, samp);
504+
comedi_buf_write_samples(s, &samp, 1);
505505
}
506506

507507
if (devpriv->ai_scans_left != 0xffffffff) { /* TRIG_COUNT */

0 commit comments

Comments
 (0)