summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2016-07-20 17:07:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-21 17:07:19 +0200
commit5ca05345c56cb979e1a25ab6146437002f95cac8 (patch)
treee5a45657b18ab788b1bed7880e1373662a49ef46
parent403fe7f34e3327ddac2e06a15e76a293d613381e (diff)
staging: comedi: ni_mio_common: fix wrong insn_write handler
For counter subdevices, the `s->insn_write` handler is being set to the wrong function, `ni_tio_insn_read()`. It should be `ni_tio_insn_write()`. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reported-by: Éric Piel <piel@delmic.com> Fixes: 10f74377eec3 ("staging: comedi: ni_tio: make ni_tio_winsn() a proper comedi (*insn_write)" Cc: <stable@vger.kernel.org> # 3.17+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>