]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das800: tidy up das800_ai_do_cmdtest()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 23 Apr 2013 01:34:35 +0000 (18:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:41:39 +0000 (10:41 -0700)
commitc80115762bedadec2b742b45c8e7c00d3315301e
tree130b52a789e5e677f6b2061d9960794b8cda64ff
parentc84159cdf7d0732ea42c07b8a74c6eba6ade5011
staging: comedi: das800: tidy up das800_ai_do_cmdtest()

For aesthetic reasons, move some of the local variables to the place
they are actually used. Also, rename the CamelCase 'startChan' local
variable.

Remove the unnecessary '()' around the variables passed in the
i8253_cascade_ns_to_timer_2div() call.

Add a local variable, 'next', to hold the cmd->chanlist[i] value
used in the loop that checks the channel/gain list.

Replace the comedi_error() with dev_dbg() and shorten the messages
a bit.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das800.c