From: H Hartley Sweeten Date: Thu, 23 May 2013 20:04:11 +0000 (-0700) Subject: staging: comedi: usbduxsigma: tidy up analog output command support X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~427 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb1ef622e7a398bb22127eed0684c8cc42650986;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed