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

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

staging: comedi: dmm32at: use comedi_buf_write_samples()



For aesthetics, use comedi_buf_write_samples() to add the 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 9a84a7d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ static irqreturn_t dmm32at_isr(int irq, void *d)

			/* invert sign bit to make range unsigned */
			samp = ((msb ^ 0x0080) << 8) + lsb;
			comedi_buf_put(s, samp);
			comedi_buf_write_samples(s, &samp, 1);
		}

		if (devpriv->ai_scans_left != 0xffffffff) {	/* TRIG_COUNT */