Files
linux/drivers
H Hartley Sweeten d839495b64 staging: comedi: dt282x: convert 'adbits' boardinfo to 'ai_maxdata'
This member of the boardinfo is the number of bits in the analog input data.
Convert this member into the subdevice 'maxdata', (1 << board->adbits) - 1,
to avoid needing to do the calculation.

Use the subdevice 'maxdata' in the driver instead of using the boardinfo and
use the comedi_offset_munge() helper to convert the two's complement data to
the offset binary form that the comedi core expects.

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>
2014-06-26 20:08:18 -04:00
..
2014-06-17 14:28:04 +02:00
2014-06-22 12:33:51 -04:00
2014-05-27 17:38:11 -07:00
2014-06-15 01:00:50 -07:00
2014-05-26 21:27:09 +02:00