From: H Hartley Sweeten Date: Wed, 22 Oct 2014 22:36:26 +0000 (-0700) Subject: staging: comedi: comedi_test: use comedi_buf_write_samples() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=88f9662abbedb43ecf9ec4e03ab67500bbf66d7d;p=linux-beck.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/comedi_test.c b/drivers/staging/comedi/drivers/comedi_test.c index 4d4358ce1710..b8fd4d24b421 100644 --- a/drivers/staging/comedi/drivers/comedi_test.c +++ b/drivers/staging/comedi/drivers/comedi_test.c @@ -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); } }