summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-07-23 18:47:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-24 23:32:28 +0300
commit333e40aee3f2d0457e2cbadc742619a6f449b2e7 (patch)
tree5dac2abec46b7f01dc595ddd0423973b1c06d8f7 /include/linux
parent12e1e6960130673aabbbe7f094c4690b00618881 (diff)
downloadlinux-333e40aee3f2d0457e2cbadc742619a6f449b2e7.tar.xz
staging: comedi: usbduxsigma: round down AI scan_begin_arg at step 4.
The return value of the `cmdtest` handler for a subdevice checks the prospective new command in various steps and returns the step number at which any problem was detected, or 0 if no problem was detected. It is allowed to modify the command in various ways at each step. Corrections for out-of-range values are generally made at step 3, and minor adjustments such as rounding are generally made at step 4. The `cmdtest` handler for the AI subdevice (`usbduxsigma_ai_cmdtest()`) currently modifies `cmd->scan_begin_arg` to bring it into range and round it down at step 3. Move the rounding down part to step 4 to follow the usual Comedi convention. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: Bernd Porr <mail@berndporr.me.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions