mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
staging: comedi: ni_labpc_common: use comedi_buf_write_samples()
Use comedi_buf_write_samples() instead of cfc_write_to_buffer() to add the single 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
0e017a4bbe
commit
8d185f52dc
1 changed files with 1 additions and 1 deletions
|
|
@ -818,7 +818,7 @@ static int labpc_drain_fifo(struct comedi_device *dev)
|
|||
devpriv->count--;
|
||||
}
|
||||
data = labpc_read_adc_fifo(dev);
|
||||
cfc_write_to_buffer(dev->read_subdev, data);
|
||||
comedi_buf_write_samples(dev->read_subdev, &data, 1);
|
||||
devpriv->stat1 = devpriv->read_byte(dev, STAT1_REG);
|
||||
}
|
||||
if (i == timeout) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue