From: H Hartley Sweeten Date: Tue, 23 Apr 2013 01:34:35 +0000 (-0700) Subject: staging: comedi: das800: tidy up das800_ai_do_cmdtest() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc405831d5bd83f263c2a0eac915ba5292d4cbe;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed