Skip to content

Commit 88f9662

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/comedi/drivers/comedi_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static void waveform_ai_interrupt(unsigned long arg)
203203
devpriv->usec_current +
204204
i * devpriv->scan_period +
205205
j * devpriv->convert_period);
206-
cfc_write_to_buffer(s, sample);
206+
comedi_buf_write_samples(s, &sample, 1);
207207
}
208208
}
209209

0 commit comments

Comments
 (0)