]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: cb_pcidas: fix dac08_write_insn()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 16:17:17 +0000 (09:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:28:43 +0000 (15:28 -0700)
commitac55ca32ca40de3cb52a1ca73ca4a9250e07eefd
tree93139f10b6d14d9054ec8236fcd59ad23bc28264
parentb436356dcc67a665da07441ab113e9a5652073e5
staging: comedi: cb_pcidas: fix dac08_write_insn()

As pointed out by Ian Abbott, the comedi INSN_WRITE instructions
are meant to iterate over, and write, all the data[] passed from
the comedi core. Modify dac08_write_insn() to work as intended.

Since doc08_write_insn() now returns the proper response to the
core, make the dac08_write() helper return void.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reported-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas.c