From: Ian Abbott Date: Tue, 6 May 2014 12:12:03 +0000 (+0100) Subject: staging: comedi: ni_tiocmd: pass subdevice to command setup functions X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~471 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67ab76f0ce3b65f5b38501143e07a0b98ff93434;p=pandora-kernel.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed