]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das16m1: minor cleanup to das16m1_ai_insn_read()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 3 May 2016 19:30:00 +0000 (12:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Jun 2016 03:42:21 +0000 (20:42 -0700)
commit33a88d4c1c95d137c74d0e3648423d838e33f90c
tree4a7130a419244bc820286eb5e4a42e6dbfe9bbbc
parentd26332710f002748a295151c8b04dff53cf980bd
staging: comedi: das16m1: minor cleanup to das16m1_ai_insn_read()

The (*insn_read) functions return the number of data values read. The 'n'
value is correct but for clarity change the return to 'insn->n'.

For aesthetics, change the 'n' loop variable name to 'i'. That's more common
in comedi drivers.

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