Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363763
b: refs/heads/master
c: 198ac9d
h: refs/heads/master
i:
  363761: b86ef7a
  363759: be306f8
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 26, 2013
1 parent 66a12eb commit 0340e05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43d092c67740704c9a8d04da2ca070bfca34207a
refs/heads/master: 198ac9dc7f0d06cd760d376c6a6c6217c5968d4a
7 changes: 5 additions & 2 deletions trunk/drivers/staging/comedi/drivers/ni_labpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,10 +1551,13 @@ static int labpc_calib_insn_read(struct comedi_device *dev,
unsigned int *data)
{
struct labpc_private *devpriv = dev->private;
unsigned int chan = CR_CHAN(insn->chanspec);
int i;

data[0] = devpriv->caldac[CR_CHAN(insn->chanspec)];
for (i = 0; i < insn->n; i++)
data[i] = devpriv->caldac[chan];

return 1;
return insn->n;
}

static int labpc_eeprom_insn_write(struct comedi_device *dev,
Expand Down

0 comments on commit 0340e05

Please sign in to comment.