summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-10-26 02:11:38 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-26 20:20:03 +0400
commit61532e9d6e8536a6cd05eb2d38eb84ebf08784af (patch)
tree3f230f87212b458659ddfa39ce81bb5104fcfab5 /include/linux
parentec6521a20431723ff4fa15fdefb386184075baa2 (diff)
downloadlinux-61532e9d6e8536a6cd05eb2d38eb84ebf08784af.tar.xz
staging: comedi: me_daq: cleanup me_ai_insn_read()
Fix the use of insn->chanspec with the CR_CHAN, CR_RANGE, and CR_AREF macros. insn->chanspec is an unsigned int not an array. Cleanup the comments when creating the 'val' to write to the channel list fifo so that the code is a bit more readable. Use the 'val' variable when getting the value from the ADC fifo and then munging the data. This cleans up the goofy line breaks. This function still does not follow the expectations of the comedi core. It is supposed to read insn->n values from the channel and return those values. Currently it only reads a single value. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions