]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_mio_common: fix the (*insn_write) for the freq_out counter
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 28 May 2014 23:26:53 +0000 (16:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:33:53 +0000 (14:33 -0700)
commit5efe70817d045ea9e552b09d3011fdbacc8187b4
treef3e1f83013a8e8b879a85176e93fa09ada766aec
parent18f25a66da58d2c94272b0454d0408dfa242811d
staging: comedi: ni_mio_common: fix the (*insn_write) for the freq_out counter

The (*insn_write) functions are supposed to write insn->n data values and
return the number of values written. For this subdevice it only makes sense
to write the last data value.

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