Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363858
b: refs/heads/master
c: d7c115c
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 3, 2013
1 parent 85b3ffb commit 3794c34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 4686a0e6429146fe0e22d1d148f4fbcab5767cfa
refs/heads/master: d7c115cea7de573e5f82200801e5fc98328428f6
7 changes: 3 additions & 4 deletions trunk/drivers/staging/comedi/drivers/rtd520.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ struct rtd_private {
/* chanBipolar tracks whether a channel is bipolar (and needs +2048) */
unsigned char chanBipolar[RTD_MAX_CHANLIST / 8]; /* bit array */

/* read back data */
unsigned int aoValue[2]; /* Used for AO read back */
unsigned int ao_readback[2];

unsigned fifoLen;
};
Expand Down Expand Up @@ -1184,7 +1183,7 @@ static int rtd_ao_winsn(struct comedi_device *dev,
writew(0, devpriv->las0 +
((chan == 0) ? LAS0_DAC1 : LAS0_DAC2));

devpriv->aoValue[chan] = data[i]; /* save for read back */
devpriv->ao_readback[chan] = data[i];

for (ii = 0; ii < RTD_DAC_TIMEOUT; ++ii) {
stat = readl(devpriv->las0 + LAS0_ADC);
Expand Down Expand Up @@ -1213,7 +1212,7 @@ static int rtd_ao_rinsn(struct comedi_device *dev,
int chan = CR_CHAN(insn->chanspec);

for (i = 0; i < insn->n; i++)
data[i] = devpriv->aoValue[chan];
data[i] = devpriv->ao_readback[chan];


return i;
Expand Down

0 comments on commit 3794c34

Please sign in to comment.