mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02: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:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user