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

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

staging: comedi: s626: 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 7138e892
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1493,8 +1493,7 @@ static bool s626_handle_eos_interrupt(struct comedi_device *dev)
		tempdata = s626_ai_reg_to_uint(*readaddr);
		readaddr++;

		/* put data into read buffer */
		cfc_write_to_buffer(s, tempdata);
		comedi_buf_write_samples(s, &tempdata, 1);
	}

	/* end of scan occurs */