mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-17 15:26:43 +07:00
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:
parent
9a84a7d2e7
commit
1700529b24
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user