From: H Hartley Sweeten Date: Wed, 5 Aug 2015 17:44:43 +0000 (-0700) Subject: staging: comedi: me4000: remove 'board' from me4000_ai_check_chanlist() X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~229 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ec85dadb7c7bb6cf84f18b7207f60efe0095d72;p=pandora-kernel.git staging: comedi: me4000: remove 'board' from me4000_ai_check_chanlist() The maximum differential channel is half the subdevice 'n_chan'. Use that instead and remove the need for the 'board' variable. Also, the comedi core does no validate the aref flags. Add a check to ensure that the subdevice actually supports the AREF_DIFF mode. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed