提交 0181ae77 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: rti800: change return of rti800_ai_insn_read()

The comedi core expects the (*insn_read) functions to return the
number of data values actually read. Change the return from 'i'
to 'insn->n' to make this clearer.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 aac49c34
...@@ -223,7 +223,7 @@ static int rti800_ai_insn_read(struct comedi_device *dev, ...@@ -223,7 +223,7 @@ static int rti800_ai_insn_read(struct comedi_device *dev,
data[i] ^= 0x800; data[i] ^= 0x800;
} }
return i; return insn->n;
} }
static int rti800_ao_insn_read(struct comedi_device *dev, static int rti800_ao_insn_read(struct comedi_device *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部