[PATCH 0/3] staging: comedi: ni_mio_common: ni_ai_insn_read() fixes

From: Ian Abbott
Date: Mon Nov 14 2016 - 15:16:49 EST


A couple of bug fixes for incorrect sample data read by
ni_ai_insn_read(), plus removal of an unnecessary variable.

1) staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data
mask
2) staging: comedi: ni_mio_common: fix E series ni_ai_insn_read() data
3) staging: comedi: ni_mio_common: remove variable 'dl' in
ni_ai_insn_read()

The bug fix patches 1) and 2) apply cleanly to kernel version 4.7
onwards, but will need backporting to longterm kernels 3.18 onwards.

drivers/staging/comedi/drivers/ni_mio_common.c | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)