From: H Hartley Sweeten Date: Fri, 22 Mar 2013 16:42:48 +0000 (-0700) Subject: staging: comedi: ni_labpc: introduce labpc_range_is_unipolar() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~470 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43a9411a67509623ad8f9e9d3712dea449a488bf;p=pandora-kernel.git staging: comedi: ni_labpc: introduce labpc_range_is_unipolar() Introduce a helper function to determine if a range selection is bipolar or unipolar. This allows removing the static data 'labpc_range_is_unipolar' and 'labpc_plus_is_unipolar' as well as the boardinfo 'ai_range_is_unipolar'. For consistency, also use the helper in labpc_ao_winsn() when checking the range. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed