From: H Hartley Sweeten Date: Wed, 25 Feb 2015 23:28:38 +0000 (-0700) Subject: staging: comedi: cb_pcimdas: fix analog input channel configuration X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~715 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=532a411e8b54418c2aed9e20f02b359002bb7e44;p=pandora-kernel.git staging: comedi: cb_pcimdas: fix analog input channel configuration The hardware uses a switch on the board to set the number of analog input channels to either 16 single-ended or 8 differential channels. Currently the switch setting is checked for every (*insn_read) operation to validate the channel number. Check the switch setting during the driver attach and initialize the subdevice accordingly. This allows the core to handle the validation. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed