diff options
author | Ian Abbott | 2012-09-19 20:37:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-09-21 18:29:53 +0200 |
commit | 6f73fbcec27be8b074555e18d9f50c3013e4d802 (patch) | |
tree | 5aed61214370749969876c145378036bff5cb441 /drivers/staging/comedi/comedi_fops.c | |
parent | staging: comedi: 8253: mmio address is a void __iomem * (diff) | |
download | kernel-qcow2-linux-6f73fbcec27be8b074555e18d9f50c3013e4d802.tar.gz kernel-qcow2-linux-6f73fbcec27be8b074555e18d9f50c3013e4d802.tar.xz kernel-qcow2-linux-6f73fbcec27be8b074555e18d9f50c3013e4d802.zip |
staging: comedi: ni_labpc: pass ai scan mode through various functions
Pass the `enum scan_mode` value calculated by `labpc_ai_scan_mode()` as
a parameter to various other functions so they don't have to call it
themselves. Amongst others, the affected functions include
`labpc_adc_timing()`, `labpc_ai_convert_period()` and
`labpc_ai_scan_period()`.
`labpc_adc_timing()` calls `labpc_ai_convert_period()` and
`labpc_ai_scan_period()` in several places, but the returned values are
the same each time, so change it to just call those functions once and
re-use the return values.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions