diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-04-22 18:37:03 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-23 10:41:51 -0700 |
commit | b4780a3afb944765f4b94d79463e570e4472ccb6 (patch) | |
tree | 3774db3ff7da245953406a5e47351a56d120d722 /arch/m32r/lib/memcpy.S | |
parent | e245b6d12691c1e178a6a075ac3cd1b7cd0d2e0e (diff) |
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 'arch/m32r/lib/memcpy.S')
0 files changed, 0 insertions, 0 deletions