Commit dae0dc30 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove parens around return values

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c3744138
...@@ -396,7 +396,7 @@ int i_APCI1710_InsnConfigInitTimer(struct comedi_device *dev, struct comedi_subd ...@@ -396,7 +396,7 @@ int i_APCI1710_InsnConfigInitTimer(struct comedi_device *dev, struct comedi_subd
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -552,7 +552,7 @@ int i_APCI1710_InsnWriteEnableDisableTimer(struct comedi_device *dev, ...@@ -552,7 +552,7 @@ int i_APCI1710_InsnWriteEnableDisableTimer(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -663,7 +663,7 @@ int i_APCI1710_InsnReadAllTimerValue(struct comedi_device *dev, struct comedi_su ...@@ -663,7 +663,7 @@ int i_APCI1710_InsnReadAllTimerValue(struct comedi_device *dev, struct comedi_su
} }
} /* End of Switch */ } /* End of Switch */
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -727,7 +727,7 @@ int i_APCI1710_InsnBitsTimer(struct comedi_device *dev, struct comedi_subdevice ...@@ -727,7 +727,7 @@ int i_APCI1710_InsnBitsTimer(struct comedi_device *dev, struct comedi_subdevice
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -812,7 +812,7 @@ int i_APCI1710_ReadTimerValue(struct comedi_device *dev, ...@@ -812,7 +812,7 @@ int i_APCI1710_ReadTimerValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -891,7 +891,7 @@ int i_APCI1710_GetTimerOutputLevel(struct comedi_device *dev, ...@@ -891,7 +891,7 @@ int i_APCI1710_GetTimerOutputLevel(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
......
...@@ -780,7 +780,7 @@ int i_APCI1710_InsnConfigInitChrono(struct comedi_device *dev, struct comedi_sub ...@@ -780,7 +780,7 @@ int i_APCI1710_InsnConfigInitChrono(struct comedi_device *dev, struct comedi_sub
i_ReturnValue = -2; i_ReturnValue = -2;
} }
data[0] = ul_RealTimingInterval; data[0] = ul_RealTimingInterval;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1072,7 +1072,7 @@ int i_APCI1710_InsnWriteEnableDisableChrono(struct comedi_device *dev, ...@@ -1072,7 +1072,7 @@ int i_APCI1710_InsnWriteEnableDisableChrono(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1152,7 +1152,7 @@ int i_APCI1710_InsnReadChrono(struct comedi_device *dev, struct comedi_subdevice ...@@ -1152,7 +1152,7 @@ int i_APCI1710_InsnReadChrono(struct comedi_device *dev, struct comedi_subdevice
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -1289,7 +1289,7 @@ int i_APCI1710_GetChronoProgressStatus(struct comedi_device *dev, ...@@ -1289,7 +1289,7 @@ int i_APCI1710_GetChronoProgressStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1575,7 +1575,7 @@ int i_APCI1710_ReadChronoValue(struct comedi_device *dev, ...@@ -1575,7 +1575,7 @@ int i_APCI1710_ReadChronoValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1752,7 +1752,7 @@ int i_APCI1710_ConvertChronoValue(struct comedi_device *dev, ...@@ -1752,7 +1752,7 @@ int i_APCI1710_ConvertChronoValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2028,5 +2028,5 @@ int i_APCI1710_InsnBitsChronoDigitalIO(struct comedi_device *dev, ...@@ -2028,5 +2028,5 @@ int i_APCI1710_InsnBitsChronoDigitalIO(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -433,7 +433,7 @@ int i_APCI1710_InsnReadDigitalIOChlValue(struct comedi_device *dev, ...@@ -433,7 +433,7 @@ int i_APCI1710_InsnReadDigitalIOChlValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -671,7 +671,7 @@ int i_APCI1710_InsnWriteDigitalIOChlOnOff(struct comedi_device *dev, ...@@ -671,7 +671,7 @@ int i_APCI1710_InsnWriteDigitalIOChlOnOff(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1021,5 +1021,5 @@ int i_APCI1710_InsnBitsDigitalIOPortOnOff(struct comedi_device *dev, ...@@ -1021,5 +1021,5 @@ int i_APCI1710_InsnBitsDigitalIOPortOnOff(struct comedi_device *dev,
i_ReturnValue = -9; i_ReturnValue = -9;
DPRINTK("NO INPUT/OUTPUT specified\n"); DPRINTK("NO INPUT/OUTPUT specified\n");
} /* switch INPUT / OUTPUT */ } /* switch INPUT / OUTPUT */
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -136,7 +136,7 @@ int i_APCI1710_InsnConfigINCCPT(struct comedi_device *dev, struct comedi_subdevi ...@@ -136,7 +136,7 @@ int i_APCI1710_InsnConfigINCCPT(struct comedi_device *dev, struct comedi_subdevi
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -502,7 +502,7 @@ int i_APCI1710_InitCounter(struct comedi_device *dev, ...@@ -502,7 +502,7 @@ int i_APCI1710_InitCounter(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -627,7 +627,7 @@ int i_APCI1710_CounterAutoTest(struct comedi_device *dev, unsigned char *pb_Test ...@@ -627,7 +627,7 @@ int i_APCI1710_CounterAutoTest(struct comedi_device *dev, unsigned char *pb_Test
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1113,7 +1113,7 @@ int i_APCI1710_InitIndex(struct comedi_device *dev, ...@@ -1113,7 +1113,7 @@ int i_APCI1710_InitIndex(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1239,7 +1239,7 @@ int i_APCI1710_InitReference(struct comedi_device *dev, ...@@ -1239,7 +1239,7 @@ int i_APCI1710_InitReference(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1362,7 +1362,7 @@ int i_APCI1710_InitExternalStrobe(struct comedi_device *dev, ...@@ -1362,7 +1362,7 @@ int i_APCI1710_InitExternalStrobe(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1434,7 +1434,7 @@ int i_APCI1710_InitCompareLogic(struct comedi_device *dev, ...@@ -1434,7 +1434,7 @@ int i_APCI1710_InitCompareLogic(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1992,7 +1992,7 @@ int i_APCI1710_InitFrequencyMeasurement(struct comedi_device *dev, ...@@ -1992,7 +1992,7 @@ int i_APCI1710_InitFrequencyMeasurement(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/*########################################################################### */ /*########################################################################### */
...@@ -2065,7 +2065,7 @@ int i_APCI1710_InsnBitsINCCPT(struct comedi_device *dev, struct comedi_subdevice ...@@ -2065,7 +2065,7 @@ int i_APCI1710_InsnBitsINCCPT(struct comedi_device *dev, struct comedi_subdevice
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2131,7 +2131,7 @@ int i_APCI1710_ClearCounterValue(struct comedi_device *dev, unsigned char b_Modu ...@@ -2131,7 +2131,7 @@ int i_APCI1710_ClearCounterValue(struct comedi_device *dev, unsigned char b_Modu
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2198,7 +2198,7 @@ int i_APCI1710_ClearAllCounterValue(struct comedi_device *dev) ...@@ -2198,7 +2198,7 @@ int i_APCI1710_ClearAllCounterValue(struct comedi_device *dev)
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2530,7 +2530,7 @@ int i_APCI1710_SetInputFilter(struct comedi_device *dev, ...@@ -2530,7 +2530,7 @@ int i_APCI1710_SetInputFilter(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2616,7 +2616,7 @@ int i_APCI1710_LatchCounter(struct comedi_device *dev, ...@@ -2616,7 +2616,7 @@ int i_APCI1710_LatchCounter(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2769,7 +2769,7 @@ int i_APCI1710_SetIndexAndReferenceSource(struct comedi_device *dev, ...@@ -2769,7 +2769,7 @@ int i_APCI1710_SetIndexAndReferenceSource(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2849,7 +2849,7 @@ int i_APCI1710_SetDigitalChlOn(struct comedi_device *dev, unsigned char b_ModulN ...@@ -2849,7 +2849,7 @@ int i_APCI1710_SetDigitalChlOn(struct comedi_device *dev, unsigned char b_ModulN
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2929,7 +2929,7 @@ int i_APCI1710_SetDigitalChlOff(struct comedi_device *dev, unsigned char b_Modul ...@@ -2929,7 +2929,7 @@ int i_APCI1710_SetDigitalChlOff(struct comedi_device *dev, unsigned char b_Modul
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/*########################################################################### */ /*########################################################################### */
...@@ -3018,7 +3018,7 @@ int i_APCI1710_InsnWriteINCCPT(struct comedi_device *dev, struct comedi_subdevic ...@@ -3018,7 +3018,7 @@ int i_APCI1710_InsnWriteINCCPT(struct comedi_device *dev, struct comedi_subdevic
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3105,7 +3105,7 @@ int i_APCI1710_EnableLatchInterrupt(struct comedi_device *dev, unsigned char b_M ...@@ -3105,7 +3105,7 @@ int i_APCI1710_EnableLatchInterrupt(struct comedi_device *dev, unsigned char b_M
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3198,7 +3198,7 @@ int i_APCI1710_DisableLatchInterrupt(struct comedi_device *dev, unsigned char b_ ...@@ -3198,7 +3198,7 @@ int i_APCI1710_DisableLatchInterrupt(struct comedi_device *dev, unsigned char b_
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3288,7 +3288,7 @@ int i_APCI1710_Write16BitCounterValue(struct comedi_device *dev, ...@@ -3288,7 +3288,7 @@ int i_APCI1710_Write16BitCounterValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3357,7 +3357,7 @@ int i_APCI1710_Write32BitCounterValue(struct comedi_device *dev, ...@@ -3357,7 +3357,7 @@ int i_APCI1710_Write32BitCounterValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3455,7 +3455,7 @@ int i_APCI1710_EnableIndex(struct comedi_device *dev, unsigned char b_ModulNbr) ...@@ -3455,7 +3455,7 @@ int i_APCI1710_EnableIndex(struct comedi_device *dev, unsigned char b_ModulNbr)
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3549,7 +3549,7 @@ int i_APCI1710_DisableIndex(struct comedi_device *dev, unsigned char b_ModulNbr) ...@@ -3549,7 +3549,7 @@ int i_APCI1710_DisableIndex(struct comedi_device *dev, unsigned char b_ModulNbr)
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3653,7 +3653,7 @@ int i_APCI1710_EnableCompareLogic(struct comedi_device *dev, unsigned char b_Mod ...@@ -3653,7 +3653,7 @@ int i_APCI1710_EnableCompareLogic(struct comedi_device *dev, unsigned char b_Mod
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3753,7 +3753,7 @@ int i_APCI1710_DisableCompareLogic(struct comedi_device *dev, unsigned char b_Mo ...@@ -3753,7 +3753,7 @@ int i_APCI1710_DisableCompareLogic(struct comedi_device *dev, unsigned char b_Mo
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3909,7 +3909,7 @@ int i_APCI1710_EnableFrequencyMeasurement(struct comedi_device *dev, ...@@ -3909,7 +3909,7 @@ int i_APCI1710_EnableFrequencyMeasurement(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4026,7 +4026,7 @@ int i_APCI1710_DisableFrequencyMeasurement(struct comedi_device *dev, unsigned c ...@@ -4026,7 +4026,7 @@ int i_APCI1710_DisableFrequencyMeasurement(struct comedi_device *dev, unsigned c
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/*########################################################################### */ /*########################################################################### */
...@@ -4155,7 +4155,7 @@ int i_APCI1710_InsnReadINCCPT(struct comedi_device *dev, struct comedi_subdevice ...@@ -4155,7 +4155,7 @@ int i_APCI1710_InsnReadINCCPT(struct comedi_device *dev, struct comedi_subdevice
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -4248,7 +4248,7 @@ int i_APCI1710_ReadLatchRegisterStatus(struct comedi_device *dev, ...@@ -4248,7 +4248,7 @@ int i_APCI1710_ReadLatchRegisterStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4332,7 +4332,7 @@ int i_APCI1710_ReadLatchRegisterValue(struct comedi_device *dev, ...@@ -4332,7 +4332,7 @@ int i_APCI1710_ReadLatchRegisterValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4431,7 +4431,7 @@ int i_APCI1710_Read16BitCounterValue(struct comedi_device *dev, ...@@ -4431,7 +4431,7 @@ int i_APCI1710_Read16BitCounterValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4507,7 +4507,7 @@ int i_APCI1710_Read32BitCounterValue(struct comedi_device *dev, ...@@ -4507,7 +4507,7 @@ int i_APCI1710_Read32BitCounterValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4590,7 +4590,7 @@ int i_APCI1710_GetIndexStatus(struct comedi_device *dev, ...@@ -4590,7 +4590,7 @@ int i_APCI1710_GetIndexStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4676,7 +4676,7 @@ int i_APCI1710_GetReferenceStatus(struct comedi_device *dev, ...@@ -4676,7 +4676,7 @@ int i_APCI1710_GetReferenceStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4744,7 +4744,7 @@ int i_APCI1710_GetUASStatus(struct comedi_device *dev, ...@@ -4744,7 +4744,7 @@ int i_APCI1710_GetUASStatus(struct comedi_device *dev,
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4812,7 +4812,7 @@ int i_APCI1710_GetCBStatus(struct comedi_device *dev, ...@@ -4812,7 +4812,7 @@ int i_APCI1710_GetCBStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -4937,7 +4937,7 @@ int i_APCI1710_Get16BitCBStatus(struct comedi_device *dev, ...@@ -4937,7 +4937,7 @@ int i_APCI1710_Get16BitCBStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} /* if (b_ModulNbr < 4) */ } /* if (b_ModulNbr < 4) */
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -5007,7 +5007,7 @@ int i_APCI1710_GetUDStatus(struct comedi_device *dev, ...@@ -5007,7 +5007,7 @@ int i_APCI1710_GetUDStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -5100,7 +5100,7 @@ int i_APCI1710_GetInterruptUDLatchedStatus(struct comedi_device *dev, ...@@ -5100,7 +5100,7 @@ int i_APCI1710_GetInterruptUDLatchedStatus(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -5359,5 +5359,5 @@ int i_APCI1710_ReadFrequencyMeasurement(struct comedi_device *dev, ...@@ -5359,5 +5359,5 @@ int i_APCI1710_ReadFrequencyMeasurement(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -346,7 +346,7 @@ int i_APCI1710_InsnConfigInitPulseEncoder(struct comedi_device *dev, ...@@ -346,7 +346,7 @@ int i_APCI1710_InsnConfigInitPulseEncoder(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -656,7 +656,7 @@ int i_APCI1710_InsnWriteEnableDisablePulseEncoder(struct comedi_device *dev, ...@@ -656,7 +656,7 @@ int i_APCI1710_InsnWriteEnableDisablePulseEncoder(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -831,7 +831,7 @@ int i_APCI1710_InsnBitsReadWritePulseEncoder(struct comedi_device *dev, ...@@ -831,7 +831,7 @@ int i_APCI1710_InsnBitsReadWritePulseEncoder(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
int i_APCI1710_InsnReadInterruptPulseEncoder(struct comedi_device *dev, int i_APCI1710_InsnReadInterruptPulseEncoder(struct comedi_device *dev,
......
...@@ -111,7 +111,7 @@ int i_APCI1710_InsnConfigPWM(struct comedi_device *dev, struct comedi_subdevice ...@@ -111,7 +111,7 @@ int i_APCI1710_InsnConfigPWM(struct comedi_device *dev, struct comedi_subdevice
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1436,7 +1436,7 @@ int i_APCI1710_InitPWM(struct comedi_device *dev, ...@@ -1436,7 +1436,7 @@ int i_APCI1710_InitPWM(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1665,7 +1665,7 @@ int i_APCI1710_GetPWMInitialisation(struct comedi_device *dev, ...@@ -1665,7 +1665,7 @@ int i_APCI1710_GetPWMInitialisation(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1718,7 +1718,7 @@ int i_APCI1710_InsnWritePWM(struct comedi_device *dev, struct comedi_subdevice * ...@@ -1718,7 +1718,7 @@ int i_APCI1710_InsnWritePWM(struct comedi_device *dev, struct comedi_subdevice *
if (i_ReturnValue >= 0) if (i_ReturnValue >= 0)
i_ReturnValue = insn->n; i_ReturnValue = insn->n;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2029,7 +2029,7 @@ int i_APCI1710_EnablePWM(struct comedi_device *dev, ...@@ -2029,7 +2029,7 @@ int i_APCI1710_EnablePWM(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2144,7 +2144,7 @@ int i_APCI1710_DisablePWM(struct comedi_device *dev, unsigned char b_ModulNbr, u ...@@ -2144,7 +2144,7 @@ int i_APCI1710_DisablePWM(struct comedi_device *dev, unsigned char b_ModulNbr, u
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3411,7 +3411,7 @@ int i_APCI1710_SetNewPWMTiming(struct comedi_device *dev, ...@@ -3411,7 +3411,7 @@ int i_APCI1710_SetNewPWMTiming(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -3558,7 +3558,7 @@ int i_APCI1710_InsnReadGetPWMStatus(struct comedi_device *dev, struct comedi_sub ...@@ -3558,7 +3558,7 @@ int i_APCI1710_InsnReadGetPWMStatus(struct comedi_device *dev, struct comedi_sub
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
int i_APCI1710_InsnBitsReadPWMInterrupt(struct comedi_device *dev, int i_APCI1710_InsnBitsReadPWMInterrupt(struct comedi_device *dev,
......
...@@ -351,7 +351,7 @@ int i_APCI1710_InsnConfigInitSSI(struct comedi_device *dev, struct comedi_subdev ...@@ -351,7 +351,7 @@ int i_APCI1710_InsnConfigInitSSI(struct comedi_device *dev, struct comedi_subdev
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -695,7 +695,7 @@ int i_APCI1710_InsnReadSSIValue(struct comedi_device *dev, struct comedi_subdevi ...@@ -695,7 +695,7 @@ int i_APCI1710_InsnReadSSIValue(struct comedi_device *dev, struct comedi_subdevi
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -844,5 +844,5 @@ int i_APCI1710_InsnBitsSSIDigitalIO(struct comedi_device *dev, struct comedi_sub ...@@ -844,5 +844,5 @@ int i_APCI1710_InsnBitsSSIDigitalIO(struct comedi_device *dev, struct comedi_sub
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -858,7 +858,7 @@ int i_APCI1710_InsnConfigInitTorCounter(struct comedi_device *dev, ...@@ -858,7 +858,7 @@ int i_APCI1710_InsnConfigInitTorCounter(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
data[0] = (unsigned int) ul_RealTimingInterval; data[0] = (unsigned int) ul_RealTimingInterval;
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1375,7 +1375,7 @@ int i_APCI1710_InsnWriteEnableDisableTorCounter(struct comedi_device *dev, ...@@ -1375,7 +1375,7 @@ int i_APCI1710_InsnWriteEnableDisableTorCounter(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1637,7 +1637,7 @@ int i_APCI1710_InsnReadGetTorCounterInitialisation(struct comedi_device *dev, ...@@ -1637,7 +1637,7 @@ int i_APCI1710_InsnReadGetTorCounterInitialisation(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -2045,5 +2045,5 @@ int i_APCI1710_InsnBitsGetTorCounterProgressStatusAndValue(struct comedi_device ...@@ -2045,5 +2045,5 @@ int i_APCI1710_InsnBitsGetTorCounterProgressStatusAndValue(struct comedi_device
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -340,7 +340,7 @@ int i_APCI1710_InsnConfigInitTTLIO(struct comedi_device *dev, struct comedi_subd ...@@ -340,7 +340,7 @@ int i_APCI1710_InsnConfigInitTTLIO(struct comedi_device *dev, struct comedi_subd
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -628,7 +628,7 @@ int i_APCI1710_InsnBitsReadTTLIO(struct comedi_device *dev, struct comedi_subdev ...@@ -628,7 +628,7 @@ int i_APCI1710_InsnBitsReadTTLIO(struct comedi_device *dev, struct comedi_subdev
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -777,7 +777,7 @@ int i_APCI1710_InsnReadTTLIOAllPortValue(struct comedi_device *dev, ...@@ -777,7 +777,7 @@ int i_APCI1710_InsnReadTTLIOAllPortValue(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1034,5 +1034,5 @@ int i_APCI1710_InsnWriteSetTTLIOChlOnOff(struct comedi_device *dev, ...@@ -1034,5 +1034,5 @@ int i_APCI1710_InsnWriteSetTTLIOChlOnOff(struct comedi_device *dev,
i_ReturnValue = -2; i_ReturnValue = -2;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
...@@ -199,5 +199,5 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead, ...@@ -199,5 +199,5 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
w_EepromStartAddress += 2; /* to read the next word */ w_EepromStartAddress += 2; /* to read the next word */
} /* for (...) i_NbOfWordsToRead */ } /* for (...) i_NbOfWordsToRead */
return (0); return 0;
} }
...@@ -348,7 +348,7 @@ unsigned short w_EepromReadWord(unsigned short w_PCIBoardEepromAddress, char *pc ...@@ -348,7 +348,7 @@ unsigned short w_EepromReadWord(unsigned short w_PCIBoardEepromAddress, char *pc
} }
return (w_ReadWord); return w_ReadWord;
} }
......
...@@ -1209,7 +1209,7 @@ int i_APCI1500_WriteDigitalOutput(struct comedi_device *dev, struct comedi_subde ...@@ -1209,7 +1209,7 @@ int i_APCI1500_WriteDigitalOutput(struct comedi_device *dev, struct comedi_subde
} /* if else data[3]==1) */ } /* if else data[3]==1) */
} /* if else data[3]==0) */ } /* if else data[3]==0) */
ui_Temp = data[0]; ui_Temp = data[0];
return (insn->n);; return insn->n;
} }
/* /*
......
...@@ -239,7 +239,7 @@ int i_APCI16XX_InsnConfigInitTTLIO(struct comedi_device *dev, ...@@ -239,7 +239,7 @@ int i_APCI16XX_InsnConfigInitTTLIO(struct comedi_device *dev,
} }
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -405,7 +405,7 @@ int i_APCI16XX_InsnBitsReadTTLIO(struct comedi_device *dev, ...@@ -405,7 +405,7 @@ int i_APCI16XX_InsnBitsReadTTLIO(struct comedi_device *dev,
} }
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -524,7 +524,7 @@ int i_APCI16XX_InsnReadTTLIOAllPortValue(struct comedi_device *dev, ...@@ -524,7 +524,7 @@ int i_APCI16XX_InsnReadTTLIOAllPortValue(struct comedi_device *dev,
i_ReturnValue = -100; i_ReturnValue = -100;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -758,7 +758,7 @@ int i_APCI16XX_InsnBitsWriteTTLIO(struct comedi_device *dev, ...@@ -758,7 +758,7 @@ int i_APCI16XX_InsnBitsWriteTTLIO(struct comedi_device *dev,
devpriv->iobase + 20 + ((b_SelectedPort / 4) * 4)); devpriv->iobase + 20 + ((b_SelectedPort / 4) * 4));
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
......
...@@ -290,7 +290,7 @@ int i_APCI2032_WriteDigitalOutput(struct comedi_device *dev, struct comedi_subde ...@@ -290,7 +290,7 @@ int i_APCI2032_WriteDigitalOutput(struct comedi_device *dev, struct comedi_subde
return -EINVAL; return -EINVAL;
} /* if else data[3]==1) */ } /* if else data[3]==1) */
} /* if else data[3]==0) */ } /* if else data[3]==0) */
return (insn->n);; return insn->n;
} }
/* /*
......
...@@ -330,7 +330,7 @@ int i_APCI2200_WriteDigitalOutput(struct comedi_device *dev, struct comedi_subde ...@@ -330,7 +330,7 @@ int i_APCI2200_WriteDigitalOutput(struct comedi_device *dev, struct comedi_subde
return -EINVAL; return -EINVAL;
} /* if else data[3]==1) */ } /* if else data[3]==1) */
} /* if else data[3]==0) */ } /* if else data[3]==0) */
return (insn->n);; return insn->n;
} }
/* /*
......
...@@ -2576,7 +2576,7 @@ int i_APCI3120_InsnWriteDigitalOutput(struct comedi_device *dev, ...@@ -2576,7 +2576,7 @@ int i_APCI3120_InsnWriteDigitalOutput(struct comedi_device *dev,
/* ES05 ui_Temp=data[0] & 0xf0; */ /* ES05 ui_Temp=data[0] & 0xf0; */
devpriv->b_DigitalOutputRegister = data[0] & 0xf0; devpriv->b_DigitalOutputRegister = data[0] & 0xf0;
return (insn->n); return insn->n;
} }
......
...@@ -243,7 +243,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead, ...@@ -243,7 +243,7 @@ int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
w_EepromStartAddress += 2; /* to read the next word */ w_EepromStartAddress += 2; /* to read the next word */
} /* for (...) i_NbOfWordsToRead */ } /* for (...) i_NbOfWordsToRead */
return (0); return 0;
} }
/*+----------------------------------------------------------------------------+*/ /*+----------------------------------------------------------------------------+*/
...@@ -522,7 +522,7 @@ int i_APCI3200_GetChannelCalibrationValue(struct comedi_device *dev, ...@@ -522,7 +522,7 @@ int i_APCI3200_GetChannelCalibrationValue(struct comedi_device *dev,
#endif #endif
/* End JK 21.10.2004: APCI-3200 / APCI-3300 Reading of EEPROM values */ /* End JK 21.10.2004: APCI-3200 / APCI-3300 Reading of EEPROM values */
return (0); return 0;
} }
/* End JK 21.10.2004: APCI-3200 / APCI-3300 Reading of EEPROM values */ /* End JK 21.10.2004: APCI-3200 / APCI-3300 Reading of EEPROM values */
......
...@@ -70,11 +70,11 @@ You shoud also find the complete GPL in the COPYING file accompanying this sourc ...@@ -70,11 +70,11 @@ You shoud also find the complete GPL in the COPYING file accompanying this sourc
int i_APCI3XXX_TestConversionStarted(struct comedi_device *dev) int i_APCI3XXX_TestConversionStarted(struct comedi_device *dev)
{ {
if ((readl((void *)(devpriv->dw_AiBase + 8)) & 0x80000UL) == 0x80000UL) { if ((readl((void *)(devpriv->dw_AiBase + 8)) & 0x80000UL) == 0x80000UL)
return (1); return 1;
} else { else
return (0); return 0;
}
} }
/* /*
...@@ -268,7 +268,7 @@ int i_APCI3XXX_AnalogInputConfigOperatingMode(struct comedi_device *dev, ...@@ -268,7 +268,7 @@ int i_APCI3XXX_AnalogInputConfigOperatingMode(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -326,7 +326,7 @@ int i_APCI3XXX_InsnConfigAnalogInput(struct comedi_device *dev, ...@@ -326,7 +326,7 @@ int i_APCI3XXX_InsnConfigAnalogInput(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -585,7 +585,7 @@ int i_APCI3XXX_InsnReadAnalogInput(struct comedi_device *dev, ...@@ -585,7 +585,7 @@ int i_APCI3XXX_InsnReadAnalogInput(struct comedi_device *dev,
printk("Operating mode not configured\n"); printk("Operating mode not configured\n");
i_ReturnValue = -1; i_ReturnValue = -1;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -757,7 +757,7 @@ int i_APCI3XXX_InsnWriteAnalogOutput(struct comedi_device *dev, ...@@ -757,7 +757,7 @@ int i_APCI3XXX_InsnWriteAnalogOutput(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -888,7 +888,7 @@ int i_APCI3XXX_InsnConfigInitTTLIO(struct comedi_device *dev, ...@@ -888,7 +888,7 @@ int i_APCI3XXX_InsnConfigInitTTLIO(struct comedi_device *dev,
} }
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1051,7 +1051,7 @@ int i_APCI3XXX_InsnBitsTTLIO(struct comedi_device *dev, ...@@ -1051,7 +1051,7 @@ int i_APCI3XXX_InsnBitsTTLIO(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1157,7 +1157,7 @@ int i_APCI3XXX_InsnReadTTLIO(struct comedi_device *dev, ...@@ -1157,7 +1157,7 @@ int i_APCI3XXX_InsnReadTTLIO(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1269,7 +1269,7 @@ int i_APCI3XXX_InsnWriteTTLIO(struct comedi_device *dev, ...@@ -1269,7 +1269,7 @@ int i_APCI3XXX_InsnWriteTTLIO(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1334,7 +1334,7 @@ int i_APCI3XXX_InsnReadDigitalInput(struct comedi_device *dev, ...@@ -1334,7 +1334,7 @@ int i_APCI3XXX_InsnReadDigitalInput(struct comedi_device *dev,
i_ReturnValue = -3; i_ReturnValue = -3;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1378,7 +1378,7 @@ int i_APCI3XXX_InsnBitsDigitalInput(struct comedi_device *dev, ...@@ -1378,7 +1378,7 @@ int i_APCI3XXX_InsnBitsDigitalInput(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1481,7 +1481,7 @@ int i_APCI3XXX_InsnBitsDigitalOutput(struct comedi_device *dev, ...@@ -1481,7 +1481,7 @@ int i_APCI3XXX_InsnBitsDigitalOutput(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1557,7 +1557,7 @@ int i_APCI3XXX_InsnWriteDigitalOutput(struct comedi_device *dev, ...@@ -1557,7 +1557,7 @@ int i_APCI3XXX_InsnWriteDigitalOutput(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
...@@ -1622,7 +1622,7 @@ int i_APCI3XXX_InsnReadDigitalOutput(struct comedi_device *dev, ...@@ -1622,7 +1622,7 @@ int i_APCI3XXX_InsnReadDigitalOutput(struct comedi_device *dev,
i_ReturnValue = -101; i_ReturnValue = -101;
} }
return (i_ReturnValue); return i_ReturnValue;
} }
/* /*
......
...@@ -304,7 +304,7 @@ static int C6X_encInput(unsigned long baseAddr, unsigned channel) ...@@ -304,7 +304,7 @@ static int C6X_encInput(unsigned long baseAddr, unsigned channel)
timeout++; timeout++;
} }
return (enc.value ^ 0x800000); return enc.value ^ 0x800000;
} }
static void C6X_encResetAll(unsigned long baseAddr) static void C6X_encResetAll(unsigned long baseAddr)
......
...@@ -209,7 +209,7 @@ static int ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s, ...@@ -209,7 +209,7 @@ static int ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
/* returns a maxdata value for a given n_bits */ /* returns a maxdata value for a given n_bits */
static inline unsigned int figure_out_maxdata(int bits) static inline unsigned int figure_out_maxdata(int bits)
{ {
return (((unsigned int) 1 << bits) - 1); return ((unsigned int) 1 << bits) - 1;
} }
/* /*
......
...@@ -626,7 +626,7 @@ static int das16m1_irq_bits(unsigned int irq) ...@@ -626,7 +626,7 @@ static int das16m1_irq_bits(unsigned int irq)
return -1; return -1;
break; break;
} }
return (ret << 4); return ret << 4;
} }
/* /*
......
...@@ -318,7 +318,7 @@ enum Clock_and_FOUT_bits { ...@@ -318,7 +318,7 @@ enum Clock_and_FOUT_bits {
}; };
static inline unsigned FOUT_Divider(unsigned divider) static inline unsigned FOUT_Divider(unsigned divider)
{ {
return (divider & FOUT_Divider_mask); return divider & FOUT_Divider_mask;
} }
#define IO_Bidirection_Pin_Register 57 #define IO_Bidirection_Pin_Register 57
...@@ -759,7 +759,7 @@ enum Configuration_Memory_High_Bits { ...@@ -759,7 +759,7 @@ enum Configuration_Memory_High_Bits {
}; };
static inline unsigned int AI_CONFIG_CHANNEL(unsigned int channel) static inline unsigned int AI_CONFIG_CHANNEL(unsigned int channel)
{ {
return (channel & 0x3f); return channel & 0x3f;
} }
#define ADC_FIFO_Data_Register 0x1c #define ADC_FIFO_Data_Register 0x1c
......
...@@ -149,13 +149,13 @@ static const unsigned ni_660x_max_rtsi_channel = 6; ...@@ -149,13 +149,13 @@ static const unsigned ni_660x_max_rtsi_channel = 6;
static inline unsigned NI_660x_RTSI_Clock(unsigned n) static inline unsigned NI_660x_RTSI_Clock(unsigned n)
{ {
BUG_ON(n > ni_660x_max_rtsi_channel); BUG_ON(n > ni_660x_max_rtsi_channel);
return (0xb + n); return 0xb + n;
} }
static const unsigned ni_660x_max_source_pin = 7; static const unsigned ni_660x_max_source_pin = 7;
static inline unsigned NI_660x_Source_Pin_Clock(unsigned n) static inline unsigned NI_660x_Source_Pin_Clock(unsigned n)
{ {
BUG_ON(n > ni_660x_max_source_pin); BUG_ON(n > ni_660x_max_source_pin);
return (0x2 + n); return 0x2 + n;
} }
/* clock sources for ni e and m series boards, get bits with Gi_Source_Select_Bits() */ /* clock sources for ni e and m series boards, get bits with Gi_Source_Select_Bits() */
......
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