]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: mpc624: introduce mpc624_ai_get_sample()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 6 Oct 2015 00:33:32 +0000 (17:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:24:11 +0000 (21:24 -0700)
commit69ddc4f4f534621bbca6da7b263f46d34616efae
tree8d71d0cc939619974a905b0d2dc659e76582b56d
parent3dce3db10e96693ad2e81a92a8e859bfe8270bfc
staging: comedi: mpc624: introduce mpc624_ai_get_sample()

Introduce a helper function to read the analog sample from the serially
connected A/D converter and handle the munging of the data.

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>
drivers/staging/comedi/drivers/mpc624.c