staging: comedi: ni_labpc: fix labpc_eeprom_insn_read()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Mar 2013 16:57:48 +0000 (09:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:43:02 +0000 (11:43 -0700)
commit1330af4c7deedd0b6d1ba43734d7e4eb1a83a491
treee3a909a7b8312864cf7ce81cf7bc669da4c5ee54
parent63a93381ef17902c1d8dd33506163c43cf2178be
staging: comedi: ni_labpc: fix labpc_eeprom_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