diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2014-05-06 13:12:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-23 21:25:47 +0900 |
commit | 458c13e935d9f33fffb099e49ecb53c67ddd1a21 (patch) | |
tree | d60ed577a2e195673d0853ccba0ac1cd6557f779 /drivers/staging/comedi/drivers/usbduxsigma.c | |
parent | staging: comedi: pass subdevice to comedi_buf_put() (diff) | |
download | linux-dev-458c13e935d9f33fffb099e49ecb53c67ddd1a21.tar.xz linux-dev-458c13e935d9f33fffb099e49ecb53c67ddd1a21.zip |
staging: comedi: pass subdevice to comedi_buf_get()
Change the parameters of `comedi_buf_get()` to pass a pointer to the
comedi subdevice instead of a pointer to the "async" structure belonging
to the subdevice.
The function gets a sample value from the comedi buffer, but currently
only deals with 16-bit sample types. A future version could deal with
16 or 32-bit sample types depending on the value of the SDF_LSAMPL
subdevice flag.
The main aim at the moment is to replace all the `struct comedi_async *`
parameters with `struct comedi_subdevice *` parameters in the comedi
driver API.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/usbduxsigma.c')
-rw-r--r-- | drivers/staging/comedi/drivers/usbduxsigma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/usbduxsigma.c b/drivers/staging/comedi/drivers/usbduxsigma.c index b57c974e5cb6..52b8b8fb9ee4 100644 --- a/drivers/staging/comedi/drivers/usbduxsigma.c +++ b/drivers/staging/comedi/drivers/usbduxsigma.c @@ -423,7 +423,7 @@ static void usbduxsigma_ao_urb_complete(struct urb *urb) unsigned int chan = devpriv->ao_chanlist[i]; unsigned short val; - ret = comedi_buf_get(s->async, &val); + ret = comedi_buf_get(s, &val); if (ret < 0) { dev_err(dev->class_dev, "buffer underflow\n"); s->async->events |= (COMEDI_CB_EOA | |