From: H Hartley Sweeten Date: Fri, 22 Mar 2013 16:47:51 +0000 (-0700) Subject: staging: comedi: ni_labpc: cleanup local var declarations in labpc_ai_cmd() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~460 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a67a67f45b1393a4cf656b89afa99202adb041c;p=pandora-kernel.git staging: comedi: ni_labpc: cleanup local var declarations in labpc_ai_cmd() Determine the scan_mode early and get the proper chanspec so that the chan, range, and aref can be determined when the variables are declared. labpc_ai_chanlist_invalid() checks that all the range and aref values in the chanlist are the same so, for consistency, use the same chanspec used to get the chan. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed