From: H Hartley Sweeten Date: Wed, 25 Feb 2015 23:28:39 +0000 (-0700) Subject: staging: comedi: cb_pcimdas: support analog input programmable ranges X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~714 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7549d770a27cbdb521ea9ed646c1fc242d77a0a;p=pandora-kernel.git staging: comedi: cb_pcimdas: support analog input programmable ranges The hardware uses a switch on the board to select if the analog inputs are bipolar or uinipolar. The gain is programmable to allow the following input ranges: Gain Bipolar Unipolar 0 +/-10V 0 to 10V 1 +/-5V 0 to 5V 2 +/-2.5V 0 to 2.5V 3 +/-1.25V 0 to 1.25V Add the necessary code to the driver to allow the user to select the desired range. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed