From: H Hartley Sweeten Date: Tue, 14 May 2013 00:07:24 +0000 (-0700) Subject: staging: comedi: ni_labpc: remove *_ai_gain_bits tables X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~697 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e763f7bd9fea0027e246e6c2cee291566a390a9;p=pandora-kernel.git staging: comedi: ni_labpc: remove *_ai_gain_bits tables The bits needed to set the analog input gain can be simply calculated based on the 'range'. The LabPC versions of the board do not have the '0x10' gain that the LabPC+ board supports. By incrementing the range appropriately the correct gain bits can still be calculated. This allows removing the two gain tables, as well as the export, along with the 'ai_range_code' data in the boardinfo. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed