summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorIan Abbott2014-05-06 14:12:03 +0200
committerGreg Kroah-Hartman2014-05-23 14:25:48 +0200
commit67ab76f0ce3b65f5b38501143e07a0b98ff93434 (patch)
treedb822f3caecff162c914df54b34846ef41494f1c /drivers/staging/comedi/comedi_fops.c
parentstaging: comedi: pass subdevice to comedi_buf_memcpy_from() (diff)
downloadkernel-qcow2-linux-67ab76f0ce3b65f5b38501143e07a0b98ff93434.tar.gz
kernel-qcow2-linux-67ab76f0ce3b65f5b38501143e07a0b98ff93434.tar.xz
kernel-qcow2-linux-67ab76f0ce3b65f5b38501143e07a0b98ff93434.zip
staging: comedi: ni_tiocmd: pass subdevice to command setup functions
The `ni_tio_input_cmd()`, `ni_tio_output_cmd()` and `ni_tio_cmd_setup()` functions are called from `ni_tio_cmd()` to set up a comedi command. They currently get passed two parameters, a pointer to a `struct ni_gpct` and a pointer to a `struct comedi_async`, but both of those come from members of a `struct comedi_subdevice` (the former from the `private` member). Replace the parameters with a pointer to the `struct comedi_subdevice`. The main motive is to make the comedi subdevice more easily available to the functions for the use of subsequent patches to remove the `struct comedi_async *` parameters from the comedi buffer handling functions. 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/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions