diff options
author | 2013-04-22 18:37:03 -0700 | |
---|---|---|
committer | 2013-04-23 10:41:51 -0700 | |
commit | b4780a3afb944765f4b94d79463e570e4472ccb6 (patch) | |
tree | 3774db3ff7da245953406a5e47351a56d120d722 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: comedi: das800: tidy up das800_di_insn_bits() (diff) | |
download | linux-dev-b4780a3afb944765f4b94d79463e570e4472ccb6.tar.xz linux-dev-b4780a3afb944765f4b94d79463e570e4472ccb6.zip |
staging: comedi: das800: tidy up das800_ai_insn_read()
Introduce a couple helper functions to read the 16-bit analog input
sample and to wait for the analog conversion to complete.
Tidy up the das800_ai_insn_read() function by using the new helpers.
Also, remove the need for 'thisboard' in the function by checking the
subdevice 'maxdata' variable to determine the analog input resolution.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions