aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-04-08 21:21:23 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-09 19:29:25 -0400
commit0181ae77e383ca86bc5182f816c09de2bc38c2d2 (patch)
treeae9d21d1dd557f67c1959450e14654042a753740 /drivers/staging
parentaac49c3417dc9378cbcead70c671d79cd626709f (diff)
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: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/comedi/drivers/rti800.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/rti800.c b/drivers/staging/comedi/drivers/rti800.c
index 0084038a8b0d..bab8b31a731d 100644
--- a/drivers/staging/comedi/drivers/rti800.c
+++ b/drivers/staging/comedi/drivers/rti800.c
@@ -223,7 +223,7 @@ static int rti800_ai_insn_read(struct comedi_device *dev,
223 data[i] ^= 0x800; 223 data[i] ^= 0x800;
224 } 224 }
225 225
226 return i; 226 return insn->n;
227} 227}
228 228
229static int rti800_ao_insn_read(struct comedi_device *dev, 229static int rti800_ao_insn_read(struct comedi_device *dev,