Commit 805077b9 authored by Fred Akers's avatar Fred Akers Committed by Greg Kroah-Hartman

Staging: comedi: addi-data: Fix long CamelCase function names

This patch fixes a few function names that are very long and are
not in the correct naming style
Signed-off-by: default avatarFred Akers <knivey@botops.net>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3e418b7c
...@@ -111,7 +111,7 @@ static int i_Temp; ...@@ -111,7 +111,7 @@ static int i_Temp;
static int i_Flag = 1; static int i_Flag = 1;
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI035_ConfigTimerWatchdog | | Function Name : int apci035_timer_config |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -163,7 +163,7 @@ static int i_Flag = 1; ...@@ -163,7 +163,7 @@ static int i_Flag = 1;
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev, static int apci035_timer_config(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -287,7 +287,7 @@ static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev, ...@@ -287,7 +287,7 @@ static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI035_StartStopWriteTimerWatchdog | | Function Name : int apci035_timer_write |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -312,7 +312,7 @@ static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev, ...@@ -312,7 +312,7 @@ static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev, static int apci035_timer_write(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -402,7 +402,7 @@ static int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev, ...@@ -402,7 +402,7 @@ static int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI035_ReadTimerWatchdog | | Function Name : int apci035_timer_read |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -427,7 +427,7 @@ static int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev, ...@@ -427,7 +427,7 @@ static int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev, static int apci035_timer_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -459,7 +459,7 @@ static int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev, ...@@ -459,7 +459,7 @@ static int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI035_ConfigAnalogInput | | Function Name : int apci035_ai_config |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -480,7 +480,7 @@ static int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev, ...@@ -480,7 +480,7 @@ static int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI035_ConfigAnalogInput(struct comedi_device *dev, static int apci035_ai_config(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -501,7 +501,7 @@ static int i_APCI035_ConfigAnalogInput(struct comedi_device *dev, ...@@ -501,7 +501,7 @@ static int i_APCI035_ConfigAnalogInput(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI035_ReadAnalogInput | | Function Name : int apci035_ai_read |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -520,7 +520,7 @@ static int i_APCI035_ConfigAnalogInput(struct comedi_device *dev, ...@@ -520,7 +520,7 @@ static int i_APCI035_ConfigAnalogInput(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI035_ReadAnalogInput(struct comedi_device *dev, static int apci035_ai_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -541,7 +541,7 @@ static int i_APCI035_ReadAnalogInput(struct comedi_device *dev, ...@@ -541,7 +541,7 @@ static int i_APCI035_ReadAnalogInput(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI035_Reset(struct comedi_device *dev) | | Function Name : int apci035_reset(struct comedi_device *dev)
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Task :Resets the registers of the card | | Task :Resets the registers of the card |
...@@ -554,7 +554,7 @@ static int i_APCI035_ReadAnalogInput(struct comedi_device *dev, ...@@ -554,7 +554,7 @@ static int i_APCI035_ReadAnalogInput(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI035_Reset(struct comedi_device *dev) static int apci035_reset(struct comedi_device *dev)
{ {
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
int i_Count; int i_Count;
...@@ -572,7 +572,7 @@ static int i_APCI035_Reset(struct comedi_device *dev) ...@@ -572,7 +572,7 @@ static int i_APCI035_Reset(struct comedi_device *dev)
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : static void v_APCI035_Interrupt | | Function Name : static void apci035_interrupt
| (int irq , void *d) | | (int irq , void *d) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Task : Interrupt processing Routine | | Task : Interrupt processing Routine |
...@@ -587,7 +587,7 @@ static int i_APCI035_Reset(struct comedi_device *dev) ...@@ -587,7 +587,7 @@ static int i_APCI035_Reset(struct comedi_device *dev)
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static void v_APCI035_Interrupt(int irq, void *d) static void apci035_interrupt(int irq, void *d)
{ {
struct comedi_device *dev = d; struct comedi_device *dev = d;
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
......
...@@ -116,7 +116,7 @@ static unsigned int ui_InterruptData, ui_Type; ...@@ -116,7 +116,7 @@ static unsigned int ui_InterruptData, ui_Type;
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI1564_ConfigDigitalInput | | Function Name : int apci1564_di_config |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -141,7 +141,7 @@ static unsigned int ui_InterruptData, ui_Type; ...@@ -141,7 +141,7 @@ static unsigned int ui_InterruptData, ui_Type;
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI1564_ConfigDigitalInput(struct comedi_device *dev, static int apci1564_di_config(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -183,7 +183,7 @@ static int apci1564_di_insn_bits(struct comedi_device *dev, ...@@ -183,7 +183,7 @@ static int apci1564_di_insn_bits(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI1564_ConfigDigitalOutput | | Function Name : int apci1564_do_config |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -206,7 +206,7 @@ static int apci1564_di_insn_bits(struct comedi_device *dev, ...@@ -206,7 +206,7 @@ static int apci1564_di_insn_bits(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI1564_ConfigDigitalOutput(struct comedi_device *dev, static int apci1564_do_config(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -260,7 +260,7 @@ static int apci1564_do_insn_bits(struct comedi_device *dev, ...@@ -260,7 +260,7 @@ static int apci1564_do_insn_bits(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI1564_ConfigTimerCounterWatchdog | | Function Name : int apci1564_timer_config |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -288,7 +288,7 @@ static int apci1564_do_insn_bits(struct comedi_device *dev, ...@@ -288,7 +288,7 @@ static int apci1564_do_insn_bits(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, static int apci1564_timer_config(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -383,7 +383,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -383,7 +383,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI1564_StartStopWriteTimerCounterWatchdog | | Function Name : int apci1564_timer_write |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -407,7 +407,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -407,7 +407,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *dev, static int apci1564_timer_write(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -471,7 +471,7 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d ...@@ -471,7 +471,7 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI1564_ReadTimerCounterWatchdog | | Function Name : int apci1564_timer_read |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -490,7 +490,7 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d ...@@ -490,7 +490,7 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev, static int apci1564_timer_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -538,7 +538,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev, ...@@ -538,7 +538,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI1564_ReadInterruptStatus | | Function Name : int apci1564_do_read |
| (struct comedi_device *dev,struct comedi_subdevice *s, | | (struct comedi_device *dev,struct comedi_subdevice *s, |
| struct comedi_insn *insn,unsigned int *data) | | struct comedi_insn *insn,unsigned int *data) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -553,7 +553,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev, ...@@ -553,7 +553,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev,
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI1564_ReadInterruptStatus(struct comedi_device *dev, static int apci1564_do_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -564,7 +564,7 @@ static int i_APCI1564_ReadInterruptStatus(struct comedi_device *dev, ...@@ -564,7 +564,7 @@ static int i_APCI1564_ReadInterruptStatus(struct comedi_device *dev,
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : static void v_APCI1564_Interrupt | | Function Name : static void apci1564_interrupt
| (int irq , void *d) | | (int irq , void *d) |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Task : Interrupt handler for the interruptible digital inputs | | Task : Interrupt handler for the interruptible digital inputs |
...@@ -579,7 +579,7 @@ static int i_APCI1564_ReadInterruptStatus(struct comedi_device *dev, ...@@ -579,7 +579,7 @@ static int i_APCI1564_ReadInterruptStatus(struct comedi_device *dev,
| | | |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static void v_APCI1564_Interrupt(int irq, void *d) static void apci1564_interrupt(int irq, void *d)
{ {
struct comedi_device *dev = d; struct comedi_device *dev = d;
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
...@@ -726,7 +726,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -726,7 +726,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
/* /*
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Function Name : int i_APCI1564_Reset(struct comedi_device *dev) | | | Function Name : int apci1564_reset(struct comedi_device *dev)
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
| Task :resets all the registers | | Task :resets all the registers |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
...@@ -739,7 +739,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -739,7 +739,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
static int i_APCI1564_Reset(struct comedi_device *dev) static int apci1564_reset(struct comedi_device *dev)
{ {
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
......
...@@ -1268,7 +1268,7 @@ static int i_APCI3200_ReadCJCCalGain(struct comedi_device *dev, ...@@ -1268,7 +1268,7 @@ static int i_APCI3200_ReadCJCCalGain(struct comedi_device *dev,
return 0; return 0;
} }
static int i_APCI3200_Reset(struct comedi_device *dev) static int apci3200_reset(struct comedi_device *dev)
{ {
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
int i_Temp; int i_Temp;
...@@ -1322,7 +1322,7 @@ static int i_APCI3200_Reset(struct comedi_device *dev) ...@@ -1322,7 +1322,7 @@ static int i_APCI3200_Reset(struct comedi_device *dev)
* data[7] : Channel current source from eeprom * data[7] : Channel current source from eeprom
* data[8] : Channle gain factor from eeprom * data[8] : Channle gain factor from eeprom
*/ */
static int i_APCI3200_ReadAnalogInput(struct comedi_device *dev, static int apci3200_ai_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -1336,7 +1336,7 @@ static int i_APCI3200_ReadAnalogInput(struct comedi_device *dev, ...@@ -1336,7 +1336,7 @@ static int i_APCI3200_ReadAnalogInput(struct comedi_device *dev,
if (s_BoardInfos[dev->minor].i_Initialised == 0) if (s_BoardInfos[dev->minor].i_Initialised == 0)
/* END JK 06.07.04: Management of sevrals boards */ /* END JK 06.07.04: Management of sevrals boards */
{ {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return -EINVAL; return -EINVAL;
} /* if(i_Initialised==0); */ } /* if(i_Initialised==0); */
...@@ -1586,7 +1586,7 @@ static int i_APCI3200_ReadAnalogInput(struct comedi_device *dev, ...@@ -1586,7 +1586,7 @@ static int i_APCI3200_ReadAnalogInput(struct comedi_device *dev,
break; break;
default: default:
printk("\nThe parameters passed are in error\n"); printk("\nThe parameters passed are in error\n");
i_APCI3200_Reset(dev); apci3200_reset(dev);
return -EINVAL; return -EINVAL;
} /* switch(insn->unused[0]) */ } /* switch(insn->unused[0]) */
...@@ -1626,7 +1626,7 @@ static int i_APCI3200_ReadAnalogInput(struct comedi_device *dev, ...@@ -1626,7 +1626,7 @@ static int i_APCI3200_ReadAnalogInput(struct comedi_device *dev,
* = 2 RTD 3 wire connection * = 2 RTD 3 wire connection
* = 3 RTD 4 wire connection * = 3 RTD 4 wire connection
*/ */
static int i_APCI3200_ConfigAnalogInput(struct comedi_device *dev, static int apci3200_ai_config(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -1970,7 +1970,7 @@ static int i_APCI3200_ConfigAnalogInput(struct comedi_device *dev, ...@@ -1970,7 +1970,7 @@ static int i_APCI3200_ConfigAnalogInput(struct comedi_device *dev,
} /* switch(data[11]) */ } /* switch(data[11]) */
} /* elseif(data[12]==0 || data[12]==1) */ } /* elseif(data[12]==0 || data[12]==1) */
if (i_err) { if (i_err) {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return -EINVAL; return -EINVAL;
} }
/* if(i_ScanType!=1) */ /* if(i_ScanType!=1) */
...@@ -2079,7 +2079,7 @@ static int i_APCI3200_ConfigAnalogInput(struct comedi_device *dev, ...@@ -2079,7 +2079,7 @@ static int i_APCI3200_ConfigAnalogInput(struct comedi_device *dev,
/* END JK 06.07.04: Management of sevrals boards */ /* END JK 06.07.04: Management of sevrals boards */
insn->unused[0] = 0; insn->unused[0] = 0;
i_APCI3200_ReadAnalogInput(dev, s, insn, &ui_Dummy); apci3200_ai_read(dev, s, insn, &ui_Dummy);
} }
return insn->n; return insn->n;
...@@ -2095,7 +2095,7 @@ static int i_APCI3200_ConfigAnalogInput(struct comedi_device *dev, ...@@ -2095,7 +2095,7 @@ static int i_APCI3200_ConfigAnalogInput(struct comedi_device *dev,
* data[1] : calibration offset * data[1] : calibration offset
* data[2] : calibration gain * data[2] : calibration gain
*/ */
static int i_APCI3200_InsnBits_AnalogInput_Test(struct comedi_device *dev, static int apci3200_ai_bits_test(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -2107,12 +2107,12 @@ static int i_APCI3200_InsnBits_AnalogInput_Test(struct comedi_device *dev, ...@@ -2107,12 +2107,12 @@ static int i_APCI3200_InsnBits_AnalogInput_Test(struct comedi_device *dev,
/* if(i_Initialised==0) */ /* if(i_Initialised==0) */
if (s_BoardInfos[dev->minor].i_Initialised == 0) { if (s_BoardInfos[dev->minor].i_Initialised == 0) {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return -EINVAL; return -EINVAL;
} /* if(i_Initialised==0); */ } /* if(i_Initialised==0); */
if (data[0] != 0 && data[0] != 1) { if (data[0] != 0 && data[0] != 1) {
printk("\nError in selection of functionality\n"); printk("\nError in selection of functionality\n");
i_APCI3200_Reset(dev); apci3200_reset(dev);
return -EINVAL; return -EINVAL;
} /* if(data[0]!=0 && data[0]!=1) */ } /* if(data[0]!=0 && data[0]!=1) */
...@@ -2202,16 +2202,16 @@ static int i_APCI3200_InsnBits_AnalogInput_Test(struct comedi_device *dev, ...@@ -2202,16 +2202,16 @@ static int i_APCI3200_InsnBits_AnalogInput_Test(struct comedi_device *dev,
return insn->n; return insn->n;
} }
static int i_APCI3200_InsnWriteReleaseAnalogInput(struct comedi_device *dev, static int apci3200_ai_write(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
{ {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return insn->n; return insn->n;
} }
static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev, static int apci3200_ai_cmdtest(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_cmd *cmd) struct comedi_cmd *cmd)
{ {
...@@ -2241,7 +2241,7 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev, ...@@ -2241,7 +2241,7 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev,
err |= -EINVAL; err |= -EINVAL;
if (err) { if (err) {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return 1; return 1;
} }
...@@ -2267,7 +2267,7 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev, ...@@ -2267,7 +2267,7 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev,
} }
if (err) { if (err) {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return 2; return 2;
} }
/* i_FirstChannel=cmd->chanlist[0]; */ /* i_FirstChannel=cmd->chanlist[0]; */
...@@ -2308,7 +2308,7 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev, ...@@ -2308,7 +2308,7 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev,
printk("\nThe Delay time value is in error\n"); printk("\nThe Delay time value is in error\n");
} }
if (err) { if (err) {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return 3; return 3;
} }
fpu_begin(); fpu_begin();
...@@ -2366,14 +2366,14 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev, ...@@ -2366,14 +2366,14 @@ static int i_APCI3200_CommandTestAnalogInput(struct comedi_device *dev,
} /* else if(cmd->scan_begin_src==TRIG_FOLLOW) */ } /* else if(cmd->scan_begin_src==TRIG_FOLLOW) */
if (err) { if (err) {
i_APCI3200_Reset(dev); apci3200_reset(dev);
return 4; return 4;
} }
return 0; return 0;
} }
static int i_APCI3200_StopCyclicAcquisition(struct comedi_device *dev, static int apci3200_cancel(struct comedi_device *dev,
struct comedi_subdevice *s) struct comedi_subdevice *s)
{ {
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
...@@ -2410,7 +2410,7 @@ static int i_APCI3200_StopCyclicAcquisition(struct comedi_device *dev, ...@@ -2410,7 +2410,7 @@ static int i_APCI3200_StopCyclicAcquisition(struct comedi_device *dev,
* Does asynchronous acquisition * Does asynchronous acquisition
* Determines the mode 1 or 2. * Determines the mode 1 or 2.
*/ */
static int i_APCI3200_CommandAnalogInput(struct comedi_device *dev, static int apci3200_ai_cmd(struct comedi_device *dev,
struct comedi_subdevice *s) struct comedi_subdevice *s)
{ {
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
...@@ -2729,7 +2729,7 @@ static int i_APCI3200_InterruptHandleEos(struct comedi_device *dev) ...@@ -2729,7 +2729,7 @@ static int i_APCI3200_InterruptHandleEos(struct comedi_device *dev)
return 0; return 0;
} }
static void v_APCI3200_Interrupt(int irq, void *d) static void apci3200_interrupt(int irq, void *d)
{ {
struct comedi_device *dev = d; struct comedi_device *dev = d;
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* data[2] : Time Unit * data[2] : Time Unit
* data[3] : Reload Value * data[3] : Reload Value
*/ */
static int i_APCI3501_ConfigTimerCounterWatchdog(struct comedi_device *dev, static int apci3501_config_insn_timer(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -86,7 +86,7 @@ static int i_APCI3501_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -86,7 +86,7 @@ static int i_APCI3501_ConfigTimerCounterWatchdog(struct comedi_device *dev,
* 0 Stop * 0 Stop
* 2 Trigger * 2 Trigger
*/ */
static int i_APCI3501_StartStopWriteTimerCounterWatchdog(struct comedi_device *dev, static int apci3501_write_insn_timer(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
...@@ -153,7 +153,7 @@ static int i_APCI3501_StartStopWriteTimerCounterWatchdog(struct comedi_device *d ...@@ -153,7 +153,7 @@ static int i_APCI3501_StartStopWriteTimerCounterWatchdog(struct comedi_device *d
* 2 Watchdog * 2 Watchdog
* data[1] : Timer Counter Watchdog Number * data[1] : Timer Counter Watchdog Number
*/ */
static int i_APCI3501_ReadTimerCounterWatchdog(struct comedi_device *dev, static int apci3501_read_insn_timer(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned int *data) unsigned int *data)
......
...@@ -27,13 +27,13 @@ static const struct addi_board apci035_boardtypes[] = { ...@@ -27,13 +27,13 @@ static const struct addi_board apci035_boardtypes[] = {
.i_Timer = 1, .i_Timer = 1,
.ui_MinAcquisitiontimeNs = 10000, .ui_MinAcquisitiontimeNs = 10000,
.ui_MinDelaytimeNs = 100000, .ui_MinDelaytimeNs = 100000,
.interrupt = v_APCI035_Interrupt, .interrupt = apci035_interrupt,
.reset = i_APCI035_Reset, .reset = apci035_reset,
.ai_config = i_APCI035_ConfigAnalogInput, .ai_config = apci035_ai_config,
.ai_read = i_APCI035_ReadAnalogInput, .ai_read = apci035_ai_read,
.timer_config = i_APCI035_ConfigTimerWatchdog, .timer_config = apci035_timer_config,
.timer_write = i_APCI035_StartStopWriteTimerWatchdog, .timer_write = apci035_timer_write,
.timer_read = i_APCI035_ReadTimerWatchdog, .timer_read = apci035_timer_read,
}, },
}; };
......
...@@ -20,19 +20,19 @@ static const struct addi_board apci1500_boardtypes[] = { ...@@ -20,19 +20,19 @@ static const struct addi_board apci1500_boardtypes[] = {
.i_NbrDoChannel = 16, .i_NbrDoChannel = 16,
.i_DoMaxdata = 0xffff, .i_DoMaxdata = 0xffff,
.i_Timer = 1, .i_Timer = 1,
.interrupt = v_APCI1500_Interrupt, .interrupt = apci1500_interrupt,
.reset = i_APCI1500_Reset, .reset = apci1500_reset,
.di_config = i_APCI1500_ConfigDigitalInputEvent, .di_config = apci1500_di_config,
.di_read = i_APCI1500_Initialisation, .di_read = apci1500_di_read,
.di_write = i_APCI1500_StartStopInputEvent, .di_write = apci1500_di_write,
.di_bits = apci1500_di_insn_bits, .di_bits = apci1500_di_insn_bits,
.do_config = i_acpi1500_config_output, .do_config = apci1500_do_config,
.do_write = i_APCI1500_WriteDigitalOutput, .do_write = apci1500_do_write,
.do_bits = i_APCI1500_ConfigureInterrupt, .do_bits = apci1500_do_bits,
.timer_config = i_APCI1500_ConfigCounterTimerWatchdog, .timer_config = apci1500_timer_config,
.timer_write = i_apci1500_timer_watchdog, .timer_write = apci1500_timer_write,
.timer_read = i_APCI1500_ReadInterruptMask, .timer_read = apci1500_timer_read,
.timer_bits = i_APCI1500_ReadCounterTimerWatchdog, .timer_bits = apci1500_timer_bits,
}, },
}; };
......
...@@ -21,16 +21,16 @@ static const struct addi_board apci1564_boardtypes[] = { ...@@ -21,16 +21,16 @@ static const struct addi_board apci1564_boardtypes[] = {
.i_NbrDoChannel = 32, .i_NbrDoChannel = 32,
.i_DoMaxdata = 0xffffffff, .i_DoMaxdata = 0xffffffff,
.i_Timer = 1, .i_Timer = 1,
.interrupt = v_APCI1564_Interrupt, .interrupt = apci1564_interrupt,
.reset = i_APCI1564_Reset, .reset = apci1564_reset,
.di_config = i_APCI1564_ConfigDigitalInput, .di_config = apci1564_di_config,
.di_bits = apci1564_di_insn_bits, .di_bits = apci1564_di_insn_bits,
.do_config = i_APCI1564_ConfigDigitalOutput, .do_config = apci1564_do_config,
.do_bits = apci1564_do_insn_bits, .do_bits = apci1564_do_insn_bits,
.do_read = i_APCI1564_ReadInterruptStatus, .do_read = apci1564_do_read,
.timer_config = i_APCI1564_ConfigTimerCounterWatchdog, .timer_config = apci1564_timer_config,
.timer_write = i_APCI1564_StartStopWriteTimerCounterWatchdog, .timer_write = apci1564_timer_write,
.timer_read = i_APCI1564_ReadTimerCounterWatchdog, .timer_read = apci1564_timer_read,
}, },
}; };
......
...@@ -26,7 +26,7 @@ static const struct addi_board apci3120_boardtypes[] = { ...@@ -26,7 +26,7 @@ static const struct addi_board apci3120_boardtypes[] = {
.i_NbrDiChannel = 4, .i_NbrDiChannel = 4,
.i_NbrDoChannel = 4, .i_NbrDoChannel = 4,
.i_DoMaxdata = 0x0f, .i_DoMaxdata = 0x0f,
.interrupt = v_APCI3120_Interrupt, .interrupt = apci3120_interrupt,
}, },
[BOARD_APCI3001] = { [BOARD_APCI3001] = {
.pc_DriverName = "apci3001", .pc_DriverName = "apci3001",
...@@ -37,7 +37,7 @@ static const struct addi_board apci3120_boardtypes[] = { ...@@ -37,7 +37,7 @@ static const struct addi_board apci3120_boardtypes[] = {
.i_NbrDiChannel = 4, .i_NbrDiChannel = 4,
.i_NbrDoChannel = 4, .i_NbrDoChannel = 4,
.i_DoMaxdata = 0x0f, .i_DoMaxdata = 0x0f,
.interrupt = v_APCI3120_Interrupt, .interrupt = apci3120_interrupt,
}, },
}; };
...@@ -136,11 +136,11 @@ static int apci3120_auto_attach(struct comedi_device *dev, ...@@ -136,11 +136,11 @@ static int apci3120_auto_attach(struct comedi_device *dev,
s->len_chanlist = this_board->i_AiChannelList; s->len_chanlist = this_board->i_AiChannelList;
s->range_table = &range_apci3120_ai; s->range_table = &range_apci3120_ai;
s->insn_config = i_APCI3120_InsnConfigAnalogInput; s->insn_config = apci3120_ai_insn_config;
s->insn_read = i_APCI3120_InsnReadAnalogInput; s->insn_read = apci3120_ai_insn_read;
s->do_cmdtest = i_APCI3120_CommandTestAnalogInput; s->do_cmdtest = apci3120_ai_cmdtest;
s->do_cmd = i_APCI3120_CommandAnalogInput; s->do_cmd = apci3120_ai_cmd;
s->cancel = i_APCI3120_StopCyclicAcquisition; s->cancel = apci3120_cancel;
/* Allocate and Initialise AO Subdevice Structures */ /* Allocate and Initialise AO Subdevice Structures */
s = &dev->subdevices[1]; s = &dev->subdevices[1];
...@@ -151,7 +151,7 @@ static int apci3120_auto_attach(struct comedi_device *dev, ...@@ -151,7 +151,7 @@ static int apci3120_auto_attach(struct comedi_device *dev,
s->maxdata = this_board->i_AoMaxdata; s->maxdata = this_board->i_AoMaxdata;
s->len_chanlist = this_board->i_NbrAoChannel; s->len_chanlist = this_board->i_NbrAoChannel;
s->range_table = &range_apci3120_ao; s->range_table = &range_apci3120_ao;
s->insn_write = i_APCI3120_InsnWriteAnalogOutput; s->insn_write = apci3120_ao_insn_write;
} else { } else {
s->type = COMEDI_SUBD_UNUSED; s->type = COMEDI_SUBD_UNUSED;
} }
...@@ -186,11 +186,11 @@ static int apci3120_auto_attach(struct comedi_device *dev, ...@@ -186,11 +186,11 @@ static int apci3120_auto_attach(struct comedi_device *dev,
s->len_chanlist = 1; s->len_chanlist = 1;
s->range_table = &range_digital; s->range_table = &range_digital;
s->insn_write = i_APCI3120_InsnWriteTimer; s->insn_write = apci3120_write_insn_timer;
s->insn_read = i_APCI3120_InsnReadTimer; s->insn_read = apci3120_read_insn_timer;
s->insn_config = i_APCI3120_InsnConfigTimer; s->insn_config = apci3120_config_insn_timer;
i_APCI3120_Reset(dev); apci3120_reset(dev);
return 0; return 0;
} }
...@@ -200,7 +200,7 @@ static void apci3120_detach(struct comedi_device *dev) ...@@ -200,7 +200,7 @@ static void apci3120_detach(struct comedi_device *dev)
if (devpriv) { if (devpriv) {
if (dev->iobase) if (dev->iobase)
i_APCI3120_Reset(dev); apci3120_reset(dev);
if (dev->irq) if (dev->irq)
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
if (devpriv->ul_DmaBufferVirtual[0]) { if (devpriv->ul_DmaBufferVirtual[0]) {
......
...@@ -43,15 +43,15 @@ static const struct addi_board apci3200_boardtypes[] = { ...@@ -43,15 +43,15 @@ static const struct addi_board apci3200_boardtypes[] = {
.i_NbrDoChannel = 4, .i_NbrDoChannel = 4,
.ui_MinAcquisitiontimeNs = 10000, .ui_MinAcquisitiontimeNs = 10000,
.ui_MinDelaytimeNs = 100000, .ui_MinDelaytimeNs = 100000,
.interrupt = v_APCI3200_Interrupt, .interrupt = apci3200_interrupt,
.reset = i_APCI3200_Reset, .reset = apci3200_reset,
.ai_config = i_APCI3200_ConfigAnalogInput, .ai_config = apci3200_ai_config,
.ai_read = i_APCI3200_ReadAnalogInput, .ai_read = apci3200_ai_read,
.ai_write = i_APCI3200_InsnWriteReleaseAnalogInput, .ai_write = apci3200_ai_write,
.ai_bits = i_APCI3200_InsnBits_AnalogInput_Test, .ai_bits = apci3200_ai_bits_test,
.ai_cmdtest = i_APCI3200_CommandTestAnalogInput, .ai_cmdtest = apci3200_ai_cmdtest,
.ai_cmd = i_APCI3200_CommandAnalogInput, .ai_cmd = apci3200_ai_cmd,
.ai_cancel = i_APCI3200_StopCyclicAcquisition, .ai_cancel = apci3200_cancel,
.di_bits = apci3200_di_insn_bits, .di_bits = apci3200_di_insn_bits,
.do_bits = apci3200_do_insn_bits, .do_bits = apci3200_do_insn_bits,
}, },
...@@ -68,15 +68,15 @@ static const struct addi_board apci3200_boardtypes[] = { ...@@ -68,15 +68,15 @@ static const struct addi_board apci3200_boardtypes[] = {
.i_NbrDoChannel = 4, .i_NbrDoChannel = 4,
.ui_MinAcquisitiontimeNs = 10000, .ui_MinAcquisitiontimeNs = 10000,
.ui_MinDelaytimeNs = 100000, .ui_MinDelaytimeNs = 100000,
.interrupt = v_APCI3200_Interrupt, .interrupt = apci3200_interrupt,
.reset = i_APCI3200_Reset, .reset = apci3200_reset,
.ai_config = i_APCI3200_ConfigAnalogInput, .ai_config = apci3200_ai_config,
.ai_read = i_APCI3200_ReadAnalogInput, .ai_read = apci3200_ai_read,
.ai_write = i_APCI3200_InsnWriteReleaseAnalogInput, .ai_write = apci3200_ai_write,
.ai_bits = i_APCI3200_InsnBits_AnalogInput_Test, .ai_bits = apci3200_ai_bits_test,
.ai_cmdtest = i_APCI3200_CommandTestAnalogInput, .ai_cmdtest = apci3200_ai_cmdtest,
.ai_cmd = i_APCI3200_CommandAnalogInput, .ai_cmd = apci3200_ai_cmd,
.ai_cancel = i_APCI3200_StopCyclicAcquisition, .ai_cancel = apci3200_cancel,
.di_bits = apci3200_di_insn_bits, .di_bits = apci3200_di_insn_bits,
.do_bits = apci3200_do_insn_bits, .do_bits = apci3200_do_insn_bits,
}, },
......
...@@ -390,9 +390,9 @@ static int apci3501_auto_attach(struct comedi_device *dev, ...@@ -390,9 +390,9 @@ static int apci3501_auto_attach(struct comedi_device *dev,
s->maxdata = 0; s->maxdata = 0;
s->len_chanlist = 1; s->len_chanlist = 1;
s->range_table = &range_digital; s->range_table = &range_digital;
s->insn_write = i_APCI3501_StartStopWriteTimerCounterWatchdog; s->insn_write = apci3501_write_insn_timer;
s->insn_read = i_APCI3501_ReadTimerCounterWatchdog; s->insn_read = apci3501_read_insn_timer;
s->insn_config = i_APCI3501_ConfigTimerCounterWatchdog; s->insn_config = apci3501_config_insn_timer;
/* Initialize the eeprom subdevice */ /* Initialize the eeprom subdevice */
s = &dev->subdevices[4]; s = &dev->subdevices[4];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment