]> git.karo-electronics.de Git - linux-beck.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)
commitf5fbccb9eea7354b7aaf41b10a1b44cf4c7b8d99
tree8d71d0cc939619974a905b0d2dc659e76582b56d
parentaa0cf376b9dc3b09af0f40ce7ace76e3d45c33a9
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