]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: cb_pcidas: cleanup cb_pcidas_ao_nofifo_winsn()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 01:10:59 +0000 (18:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:23:55 +0000 (15:23 -0700)
commit358ff245ba50f726ae308bbca17023d8d798ecb0
treec494e983a839560f20f6f9e53f4782fe137fd033
parent25e5f4fd2f3f3c3c380e6fc44779bef9926a88a9
staging: comedi: cb_pcidas: cleanup cb_pcidas_ao_nofifo_winsn()

Create local variables for the channel and range in order to
cleanup to mask/set of the ao_control_bits.

Remove the extra space in all the comments.

Return the number of data parameters used (insn->n) to indicate
success instead of the open coded '1'.

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/cb_pcidas.c