summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-05-23 13:05:38 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-30 20:41:08 +0900
commitb986be8527c7a9a84025689d5e85bc03300bb091 (patch)
tree87fc5bafe0317e2f1efabc90345f3a93f7811c5d /tools/perf/scripts/python/bin
parentc5db3b755ccf6bf046b5b5fa1b94cee1cf609bd8 (diff)
staging: comedi: usbduxsigma: tidy up analog input 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, send the command to start the analog input sampling, initialize the counter for the conversion, then either read the acquisition data (submit the urbs) or set the trigger to read the data later. 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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions