mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 05:39:42 -04:00
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: 10f74377ee ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
403fe7f34e
commit
5ca05345c5
@@ -5480,7 +5480,7 @@ static int ni_E_init(struct comedi_device *dev,
|
||||
s->maxdata = (devpriv->is_m_series) ? 0xffffffff
|
||||
: 0x00ffffff;
|
||||
s->insn_read = ni_tio_insn_read;
|
||||
s->insn_write = ni_tio_insn_read;
|
||||
s->insn_write = ni_tio_insn_write;
|
||||
s->insn_config = ni_tio_insn_config;
|
||||
#ifdef PCIDMA
|
||||
if (dev->irq && devpriv->mite) {
|
||||
|
||||
Reference in New Issue
Block a user