From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:12:56 +0000 (-0700) Subject: staging: comedi: dt282x: cleanup analog output range table X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1529 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc00fbc990871a17e0e0f31acc0876f83165cf53;p=pandora-kernel.git staging: comedi: dt282x: cleanup analog output range table The DT2821 series boards do not have programmable analog output ranges. The range is set, per-channel, with jumpers on the board. Currently the user has to pass some configuration options when attaching to the driver in order to set the range for each channel. If they do not pass the range options they will default to 0. If they pass an invalid range option they will also default to 0. The 0 range option is bipolar 10V. If the user passes a range option that does not match the hardware setting it doesn't cause any problems in the driver it just causes the user space comedilib library to incorrectly convert the hardware values to physical values. Make the attach a bit simpler by deprecating these options and providing a range table with all the valid ranges for the analog outputs. The user can then select the correct range when they use the comedilib functions. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed