summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-10-26 02:09:47 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-26 20:20:02 +0400
commit14d09f79d7b792d20131bc2f25a3d8a8e7cd593f (patch)
tree326af699ccab8b527428b82a164f88daead24f67 /scripts
parent91b0da570722faf2e6a06f999e789405161943b5 (diff)
downloadlinux-14d09f79d7b792d20131bc2f25a3d8a8e7cd593f.tar.xz
staging: comedi: me_daq: fix me_ao_insn_write()
This function is supposed to write to a single analog output channel. The channel number is packed in insn->chanspec, which is an unsigned int, and unpacked using the CR_CHAN() macro. Currently this function is trying to use the chanspec as an array. This works only if a single value is written. Fix the function so that the desired channel is determined and all the data is written to that channel. Also, fix the return. The comedi core expects insn_read functions to return the number of data values (insn->n). 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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions