staging: comedi: adl_pci9111: cleanup pci9111_ai_munge()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 01:54:42 +0000 (18:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 03:02:24 +0000 (20:02 -0700)
commitaf031edf3f377b946c1d2b0d163fcf32b1041434
treeb0b4c64a102fb6fc5aec0e162bdf9b9de4257cac
parent2873ea8154b220c11f5e17222a3879925d7db506
staging: comedi: adl_pci9111: cleanup pci9111_ai_munge()

The shift, maxdata, and invert values, used to handle the 12-/16-bit
analog input differences, can be calculated based on the subdevice
maxdata value.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9111.c