Skip to content

Commit

Permalink
staging: comedi: dmm32at: use comedi_buf_write_samples()
Browse files Browse the repository at this point in the history
For aesthetics, use comedi_buf_write_samples() to add the 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]>
  • Loading branch information
bigguiness authored and gregkh committed Oct 29, 2014
1 parent 9a84a7d commit 1700529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/dmm32at.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1700529

Please sign in to comment.