]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: ni_labpc: cleanup local var declarations in labpc_ai_cmd()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Mar 2013 16:47:51 +0000 (09:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:42:58 +0000 (11:42 -0700)
commit8a67a67f45b1393a4cf656b89afa99202adb041c
tree5e01d9e436ea50b0330a919f1c32eadfa05d9b86
parent9718e5dfd7e19a2fb0d98a9afdb0459ba6b5d41f
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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.c