commit | af031edf3f377b946c1d2b0d163fcf32b1041434 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hartleys@visionengravers.com> | Mon Sep 10 18:54:42 2012 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Sep 10 20:02:24 2012 -0700 |
tree | b0b4c64a102fb6fc5aec0e162bdf9b9de4257cac | |
parent | 2873ea8154b220c11f5e17222a3879925d7db506 [diff] |
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>