diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-10-22 15:37:01 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-29 16:03:14 +0800 |
commit | 778d695e67ac836130694942026d686995e2ddaa (patch) | |
tree | 31aaffbb9eb22a9c2a5fb91c5e17fc20eefcd515 | |
parent | 1f44c034de2e1591f4fad38c685dd167e1da7062 (diff) | |
download | op-kernel-dev-778d695e67ac836130694942026d686995e2ddaa.zip op-kernel-dev-778d695e67ac836130694942026d686995e2ddaa.tar.gz |
staging: comedi: pcl726: use comedi_buf_write_samples()
Use comedi_buf_write_samples() to add the sample to the async buffer.
The async events will set properly by the core. Remove the unnecessary
events in the driver.
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>
-rw-r--r-- | drivers/staging/comedi/drivers/pcl726.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/pcl726.c b/drivers/staging/comedi/drivers/pcl726.c index be43cda..a1ac567 100644 --- a/drivers/staging/comedi/drivers/pcl726.c +++ b/drivers/staging/comedi/drivers/pcl726.c @@ -235,8 +235,7 @@ static irqreturn_t pcl726_interrupt(int irq, void *d) if (devpriv->cmd_running) { pcl726_intr_cancel(dev, s); - comedi_buf_put(s, 0); - s->async->events |= (COMEDI_CB_BLOCK | COMEDI_CB_EOS); + comedi_buf_write_samples(s, &s->state, 1); comedi_handle_events(dev, s); } |