diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2015-07-23 18:47:02 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-24 23:32:28 +0300 |
| commit | ed2c2e060b6c3cd5fc42993011aa41c765ff1b2f (patch) | |
| tree | 43042358e622b900640d2879683f7ed5320fd2da /include | |
| parent | 57befc33af0243e9b3835d46ab836406256f5dd4 (diff) | |
| download | linux-ed2c2e060b6c3cd5fc42993011aa41c765ff1b2f.tar.xz | |
staging: comedi: usbduxsigma: round down AO 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 AO subdevice (`usbduxsigma_ao_cmdtest()`)
currently range checks the timings at step 3. Since the running command
will round down the timings, add code to round them down at step 4.
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')
0 files changed, 0 insertions, 0 deletions
