mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
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 <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c4a58f281a
commit
6aec0f9af4
|
|
@ -371,7 +371,7 @@ static irqreturn_t apci3xxx_irq_handler(int irq, void *d)
|
|||
writel(status, dev->mmio + 16);
|
||||
|
||||
val = readl(dev->mmio + 28);
|
||||
comedi_buf_put(s, val);
|
||||
comedi_buf_write_samples(s, &val, 1);
|
||||
|
||||
s->async->events |= COMEDI_CB_EOA;
|
||||
comedi_handle_events(dev, s);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user