staging: comedi: ni_labpc: fix labpc_calib_insn_read()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Mar 2013 17:27:11 +0000 (10:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Mar 2013 23:14:51 +0000 (16:14 -0700)
commit198ac9dc7f0d06cd760d376c6a6c6217c5968d4a
tree4ef32983cf8306261d5c485e6799fdc78a91b573
parent43d092c67740704c9a8d04da2ca070bfca34207a
staging: comedi: ni_labpc: fix labpc_calib_insn_read()

The comedi core expects the (*insn_read) operations to read insn->n
values and return the number of values actually read.

Make this function work like the core expects.

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