staging: comedi: ni_daq_700: add AI range and input mode switching
authorFred Brooks <frederick.brooks@microchip.com>
Fri, 20 Jun 2014 11:53:15 +0000 (12:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 15:28:02 +0000 (08:28 -0700)
commitcf695df834efc718b2ed17e9c83e127fd63c9033
tree02146b50a9d9cd78f4960bbe516063c0a0d8769b
parent7bc26a68ed6f7c5949526ab884439b86a6b28350
staging: comedi: ni_daq_700: add AI range and input mode switching

Add support for switching the input range and the single-ended/
differential input mode for the AI subdevice.  We needed to clear the
FIFO of data before the conversion to handle card mode switching
glitches.

[ Minor whitespace fixes and driver comment reformatting.  - Ian ]

Signed-off-by: Fred Brooks <frederick.brooks@microchip.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_daq_700.c