From: H Hartley Sweeten Date: Thu, 4 Sep 2014 17:39:32 +0000 (-0700) Subject: staging: comedi: adl_pci9118: refactor 'rangelist_ai' in boardinfo X-Git-Tag: fixes-for-v3.18-merge-window~15^2~697 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=344a15c14162d9976bfdf2a6145eab7989c513d4;p=pandora-kernel.git staging: comedi: adl_pci9118: refactor 'rangelist_ai' in boardinfo The boards supported by this driver either have "normal" or "high gain" analog input ranges. For aesthetics, replace the 'rangelist_ai' member in the boardinfo with a bit-field flag 'is_hg' to indicate the "high gain" range is used. Refactor the subdevice init to use the flag to set the correct range_table. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed