Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88f9662a authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ce8bfa27
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -203,7 +203,7 @@ static void waveform_ai_interrupt(unsigned long arg)
					       devpriv->usec_current +
					       devpriv->usec_current +
						   i * devpriv->scan_period +
						   i * devpriv->scan_period +
						   j * devpriv->convert_period);
						   j * devpriv->convert_period);
			cfc_write_to_buffer(s, sample);
			comedi_buf_write_samples(s, &sample, 1);
		}
		}
	}
	}