From: H Hartley Sweeten Date: Thu, 17 Apr 2014 17:07:48 +0000 (-0700) Subject: staging: comedi: addi_apci_3xxx: fix ai subdevice 'len_chanlist' X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c9fc34ea3ed02d7d8356094ac179e1c63ae443b;p=pandora-kernel.git staging: comedi: addi_apci_3xxx: fix ai subdevice 'len_chanlist' Due to a driver limitation, the (*do_cmdtest) for the analog input subdevice overrides the cmd->chanlist_len to force single channel chanlists. But, the cmd->scan_end_arg was already validated before this happens. Instead of fixing the (*do_cmdtest) just set the subdevice len_chanlist to 1 to limit the chanlist size. Move the comment also. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed