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)
commitd0e50e6588e236c17f494b3055be986344692af9
tree4a7130a419244bc820286eb5e4a42e6dbfe9bbbc
parentb31cf3126474e71192282c97ae88a6f60b17bea0
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