diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-09-18 11:35:21 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-20 10:29:22 +0800 |
commit | f47906a3421af0864dc93c812347c553efa208ee (patch) | |
tree | dd71e48e615f26b20bf41b296912d27062d6fb80 /drivers/staging/comedi/drivers/addi_apci_3xxx.c | |
parent | staging: comedi: addi_apci_1564: use comedi_handle_events() (diff) | |
download | linux-dev-f47906a3421af0864dc93c812347c553efa208ee.tar.xz linux-dev-f47906a3421af0864dc93c812347c553efa208ee.zip |
staging: comedi: addi_apci_3xxx: use comedi_handle_events()
Use comedi_handle_events() to automatically (*cancel) the async command
for an end-of-acquisition or if an error/overflow occurs.
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>
Diffstat (limited to 'drivers/staging/comedi/drivers/addi_apci_3xxx.c')
-rw-r--r-- | drivers/staging/comedi/drivers/addi_apci_3xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_3xxx.c b/drivers/staging/comedi/drivers/addi_apci_3xxx.c index a296bd5b2c0c..fe9ac2d72694 100644 --- a/drivers/staging/comedi/drivers/addi_apci_3xxx.c +++ b/drivers/staging/comedi/drivers/addi_apci_3xxx.c @@ -374,7 +374,7 @@ static irqreturn_t apci3xxx_irq_handler(int irq, void *d) comedi_buf_put(s, val); s->async->events |= COMEDI_CB_EOA; - comedi_event(dev, s); + comedi_handle_events(dev, s); return IRQ_HANDLED; } |