commit | 7fd2dae2500dee7da9a16557ace9506fb8aefd12 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Tue Jan 20 14:53:22 2015 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Jan 25 19:59:12 2015 +0800 |
tree | fa67a127ed382082701872a5796fe825f8f3a1fc | |
parent | a65e1419e64c26c3c14ba93d65ea86a416f47569 [diff] |
staging: comedi: adv_pci1710: introduce pci171x_ai_read_sample() Introduce a helper function to read an analog input sample, check for channel dropout, and mask the sample to the maxdata of the subdevice. 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>