mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-02 23:50:33 -05:00
staging: comedi: comedi_test: 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:
committed by
Greg Kroah-Hartman
parent
ce8bfa275a
commit
88f9662abb
@@ -203,7 +203,7 @@ static void waveform_ai_interrupt(unsigned long arg)
|
||||
devpriv->usec_current +
|
||||
i * devpriv->scan_period +
|
||||
j * devpriv->convert_period);
|
||||
cfc_write_to_buffer(s, sample);
|
||||
comedi_buf_write_samples(s, &sample, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user