Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337257
b: refs/heads/master
c: 2730c73
h: refs/heads/master
i:
  337255: 0e44e8b
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 25, 2012
1 parent 7ddc16a commit afe6789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 66483378b91287fed134efdf9fa04ec6e96a71ce
refs/heads/master: 2730c736d99c766c6e6c7674c4be53fb0f9d3315
10 changes: 5 additions & 5 deletions trunk/drivers/staging/comedi/drivers/cb_pcidda.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ static int cb_pcidda_attach_pci(struct comedi_device *dev,
struct cb_pcidda_private *devpriv;
struct comedi_subdevice *s;
unsigned long iobase_8255;
int index;
int i;
int ret;

thisboard = cb_pcidda_find_boardinfo(dev, pcidev);
Expand Down Expand Up @@ -527,12 +527,12 @@ static int cb_pcidda_attach_pci(struct comedi_device *dev,
subdev_8255_init(dev, s, NULL, iobase_8255 + PORT2A);

/* Read the caldac eeprom data */
for (index = 0; index < EEPROM_SIZE; index++)
devpriv->eeprom_data[index] = cb_pcidda_read_eeprom(dev, index);
for (i = 0; i < EEPROM_SIZE; i++)
devpriv->eeprom_data[i] = cb_pcidda_read_eeprom(dev, i);

/* set calibrations dacs */
for (index = 0; index < thisboard->ao_chans; index++)
cb_pcidda_calibrate(dev, index, devpriv->ao_range[index]);
for (i = 0; i < thisboard->ao_chans; i++)
cb_pcidda_calibrate(dev, i, devpriv->ao_range[i]);

dev_info(dev->class_dev, "%s attached\n", dev->board_name);

Expand Down

0 comments on commit afe6789

Please sign in to comment.