static void addi_eeprom_read_di_info(struct comedi_device *dev,
unsigned long iobase,
- char *type,
unsigned short addr)
{
+ const struct addi_board *this_board = comedi_board(dev);
struct addi_private *devpriv = dev->private;
+ char *type = this_board->pc_EepromChip;
unsigned short tmp;
/* Number of channels */
static void addi_eeprom_read_do_info(struct comedi_device *dev,
unsigned long iobase,
- char *type,
unsigned short addr)
{
+ const struct addi_board *this_board = comedi_board(dev);
struct addi_private *devpriv = dev->private;
+ char *type = this_board->pc_EepromChip;
unsigned short tmp;
/* Number of channels */
static void addi_eeprom_read_timer_info(struct comedi_device *dev,
unsigned long iobase,
- char *type,
unsigned short addr)
{
struct addi_private *devpriv = dev->private;
#if 0
+ const struct addi_board *this_board = comedi_board(dev);
+ char *type = this_board->pc_EepromChip;
unsigned short offset = 0;
unsigned short ntimers;
unsigned short tmp;
static void addi_eeprom_read_ao_info(struct comedi_device *dev,
unsigned long iobase,
- char *type,
unsigned short addr)
{
+ const struct addi_board *this_board = comedi_board(dev);
struct addi_private *devpriv = dev->private;
+ char *type = this_board->pc_EepromChip;
unsigned short tmp;
/* No of channels for 1st hard component */
static void addi_eeprom_read_ai_info(struct comedi_device *dev,
unsigned long iobase,
- char *type,
unsigned short addr)
{
const struct addi_board *this_board = comedi_board(dev);
struct addi_private *devpriv = dev->private;
+ char *type = this_board->pc_EepromChip;
unsigned short offset;
unsigned short tmp;
switch (func) {
case EEPROM_DIGITALINPUT:
- addi_eeprom_read_di_info(dev, iobase, type, addr);
+ addi_eeprom_read_di_info(dev, iobase, addr);
break;
case EEPROM_DIGITALOUTPUT:
- addi_eeprom_read_do_info(dev, iobase, type, addr);
+ addi_eeprom_read_do_info(dev, iobase, addr);
break;
case EEPROM_ANALOGINPUT:
- addi_eeprom_read_ai_info(dev, iobase, type, addr);
+ addi_eeprom_read_ai_info(dev, iobase, addr);
break;
case EEPROM_ANALOGOUTPUT:
- addi_eeprom_read_ao_info(dev, iobase, type, addr);
+ addi_eeprom_read_ao_info(dev, iobase, addr);
break;
case EEPROM_TIMER:
case EEPROM_WATCHDOG:
case EEPROM_TIMER_WATCHDOG_COUNTER:
- addi_eeprom_read_timer_info(dev, iobase, type, addr);
+ addi_eeprom_read_timer_info(dev, iobase, addr);
break;
}
}