staging: comedi: ni_mio_common: fix wrong insn_write handler
authorIan Abbott <abbotti@mev.co.uk>
Wed, 20 Jul 2016 16:07:34 +0000 (17:07 +0100)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 12 Sep 2016 22:59:37 +0000 (18:59 -0400)
commit985f3f2373e5f14936d866a823939766321b94e4
treeb60bc3a84986fd3a85e7af19c4cdade9d69c0dc5
parentd8107af012415fd200de7786da8f4ebbab6cf834
staging: comedi: ni_mio_common: fix wrong insn_write handler

[ Upstream commit 5ca05345c56cb979e1a25ab6146437002f95cac8 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/staging/comedi/drivers/ni_mio_common.c