]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: usbduxsigma: tidy up analog output command support
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 20:04:11 +0000 (13:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:41:06 +0000 (20:41 +0900)
commit096c1fa30ee654131493c4c4b9814890727058f6
treedd530b88c4d3ce0d77777b1ba2f67d7270e18171
parent1ca0ffa2349c50469dbcd4e7a0bea363f05ff311
staging: comedi: usbduxsigma: tidy up analog output command support

Rename the (*do_cmdtest) and (*do_cmd) functions so they have namespace
associated with the driver. Rename the local variable used for the
private data pointer.

Move all the command argument initialization and testing into the
(*do_cmdtest) function. That function is always called by the comedi
core before the (*do_cmd) function. The only thing the (*do_cmd) function
should have to do is setup the channel list, initialize the counter for
the conversion, then either start the conversion (submit the urbs) or
set the trigger to start the conversion.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxsigma.c