Skip to content

Commit 6aec0f9

Browse files
bigguinessgregkh
authored andcommitted
staging: comedi: addi_apci_3xxx: use comedi_buf_write_samples()
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]>
1 parent c4a58f2 commit 6aec0f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/comedi/drivers/addi_apci_3xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static irqreturn_t apci3xxx_irq_handler(int irq, void *d)
371371
writel(status, dev->mmio + 16);
372372

373373
val = readl(dev->mmio + 28);
374-
comedi_buf_put(s, val);
374+
comedi_buf_write_samples(s, &val, 1);
375375

376376
s->async->events |= COMEDI_CB_EOA;
377377
comedi_handle_events(dev, s);

0 commit comments

Comments
 (0)