From: H Hartley Sweeten Date: Wed, 5 Aug 2015 17:44:51 +0000 (-0700) Subject: staging: comedi: me4000: simplify analog input range programming X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~221 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=245bd462440ca5914286c71051fdc5af506e76cb;p=pandora-kernel.git staging: comedi: me4000: simplify analog input range programming The comedi_lrange table for the analog inputs is inverted compared to the values that need to be written to the ME4000_AI_CHANNEL_LIST_REG to select the range. Create a macro, ME4000_AI_LIST_RANGE(), to handle the inversion. Remove the old defines and simplify the code a bit. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed