Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337457
b: refs/heads/master
c: a927077
h: refs/heads/master
i:
  337455: 18b1b3d
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 30, 2012
1 parent 7444299 commit fcf782f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 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: 6f98fe207bfc457d9d1d40c4573f3eec8dcb2cae
refs/heads/master: a927077c62688d1afefcda6da2a15d14a578a089
3 changes: 1 addition & 2 deletions trunk/drivers/staging/comedi/drivers/addi-data/addi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ static int i_ADDI_Attach(struct comedi_device *dev, struct comedi_devconfig *it)
printk("\nEnable the interrupt for the controller");
}
printk("\nRead Eeprom");
i_EepromReadMainHeader(io_addr[0], this_board->pc_EepromChip,
dev);
addi_eeprom_read_info(dev, io_addr[0]);
} else {
printk("\nPCI Eeprom unused");
}
Expand Down
9 changes: 4 additions & 5 deletions trunk/drivers/staging/comedi/drivers/addi-data/addi_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,11 @@ static void addi_eeprom_read_ai_info(struct comedi_device *dev,
devpriv->s_EeParameters.i_AiMaxdata = 0xffff >> (16 - tmp);
}

static int i_EepromReadMainHeader(unsigned long iobase,
char *type,
struct comedi_device *dev)
static void addi_eeprom_read_info(struct comedi_device *dev,
unsigned long iobase)
{
const struct addi_board *this_board = comedi_board(dev);
char *type = this_board->pc_EepromChip;
unsigned short size;
unsigned char nfuncs;
int i;
Expand Down Expand Up @@ -372,6 +373,4 @@ static int i_EepromReadMainHeader(unsigned long iobase,
break;
}
}

return 0;
}

0 comments on commit fcf782f

Please sign in to comment.