aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-05-29 13:30:03 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-18 17:39:38 -0400
commit02dc1e78a238627a0876695b8c84deca78e4435a (patch)
tree27a21910787424070b7541cf5706f3768879bd56 /drivers
parent223a6402c51c066537b976a7302028c8579ebe09 (diff)
staging: comedi: addi_common.h: remove ADDIDATA_{EN, DIS}ABLE defines
These defines don't add any additional clarity to the addi_data drivers. Just remove them. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/addi-data/addi_common.h7
-rw-r--r--drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c9
-rw-r--r--drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c10
-rw-r--r--drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c109
4 files changed, 31 insertions, 104 deletions
diff --git a/drivers/staging/comedi/drivers/addi-data/addi_common.h b/drivers/staging/comedi/drivers/addi-data/addi_common.h
index 289083153ec6..1a0bafcf983f 100644
--- a/drivers/staging/comedi/drivers/addi-data/addi_common.h
+++ b/drivers/staging/comedi/drivers/addi-data/addi_common.h
@@ -26,13 +26,6 @@
26#define ADDIDATA_93C76 "93C76" 26#define ADDIDATA_93C76 "93C76"
27#define ADDIDATA_S5920 "S5920" 27#define ADDIDATA_S5920 "S5920"
28 28
29/* ADDIDATA Enable Disable */
30#define ADDIDATA_ENABLE 1
31#define ADDIDATA_DISABLE 0
32
33/* Structures */
34
35/* structure for the boardtype */
36struct addi_board { 29struct addi_board {
37 const char *pc_DriverName; /* driver name */ 30 const char *pc_DriverName; /* driver name */
38 int i_IorangeBase1; 31 int i_IorangeBase1;
diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c
index 28450f65a134..cad33f1a04fe 100644
--- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c
+++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c
@@ -177,8 +177,7 @@ static int apci035_timer_config(struct comedi_device *dev,
177 177
178 /* Disable the hardware trigger */ 178 /* Disable the hardware trigger */
179 ui_Command = ui_Command & 0xFFFFF89FUL; 179 ui_Command = ui_Command & 0xFFFFF89FUL;
180 if (data[4] == ADDIDATA_ENABLE) { 180 if (data[4] == 1) {
181
182 /* Set the hardware trigger level */ 181 /* Set the hardware trigger level */
183 ui_Command = ui_Command | (data[5] << 5); 182 ui_Command = ui_Command | (data[5] << 5);
184 } 183 }
@@ -188,8 +187,7 @@ static int apci035_timer_config(struct comedi_device *dev,
188 187
189 /* Disable the hardware gate */ 188 /* Disable the hardware gate */
190 ui_Command = ui_Command & 0xFFFFF87FUL; 189 ui_Command = ui_Command & 0xFFFFF87FUL;
191 if (data[6] == ADDIDATA_ENABLE) { 190 if (data[6] == 1) {
192
193 /* Set the hardware gate level */ 191 /* Set the hardware gate level */
194 ui_Command = ui_Command | (data[7] << 7); 192 ui_Command = ui_Command | (data[7] << 7);
195 } 193 }
@@ -203,8 +201,7 @@ static int apci035_timer_config(struct comedi_device *dev,
203 /* Set the hardware output level */ 201 /* Set the hardware output level */
204 ui_Command = ui_Command | (data[8] << 2); 202 ui_Command = ui_Command | (data[8] << 2);
205 outl(ui_Command, devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); 203 outl(ui_Command, devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12);
206 if (data[9] == ADDIDATA_ENABLE) { 204 if (data[9] == 1) {
207
208 /* Set the reload value */ 205 /* Set the reload value */
209 outl(data[11], 206 outl(data[11],
210 devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 24); 207 devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 24);
diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c
index 0ba5385226ae..7fa4346f6184 100644
--- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c
+++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c
@@ -111,7 +111,7 @@ static int apci1564_di_config(struct comedi_device *dev,
111 devpriv->tsk_Current = current; 111 devpriv->tsk_Current = current;
112 112
113 /* Set the digital input logic */ 113 /* Set the digital input logic */
114 if (data[0] == ADDIDATA_ENABLE) { 114 if (data[0] == 1) {
115 data[2] = data[2] << 4; 115 data[2] = data[2] << 4;
116 data[3] = data[3] << 4; 116 data[3] = data[3] << 4;
117 outl(data[2], devpriv->i_IobaseAmcc + APCI1564_DI_INT_MODE1_REG); 117 outl(data[2], devpriv->i_IobaseAmcc + APCI1564_DI_INT_MODE1_REG);
@@ -150,16 +150,16 @@ static int apci1564_do_config(struct comedi_device *dev,
150 } 150 }
151 151
152 if (data[0]) 152 if (data[0])
153 devpriv->b_OutputMemoryStatus = ADDIDATA_ENABLE; 153 devpriv->b_OutputMemoryStatus = 1;
154 else 154 else
155 devpriv->b_OutputMemoryStatus = ADDIDATA_DISABLE; 155 devpriv->b_OutputMemoryStatus = 0;
156 156
157 if (data[1] == ADDIDATA_ENABLE) 157 if (data[1] == 1)
158 ul_Command = ul_Command | 0x1; 158 ul_Command = ul_Command | 0x1;
159 else 159 else
160 ul_Command = ul_Command & 0xFFFFFFFE; 160 ul_Command = ul_Command & 0xFFFFFFFE;
161 161
162 if (data[2] == ADDIDATA_ENABLE) 162 if (data[2] == 1)
163 ul_Command = ul_Command | 0x2; 163 ul_Command = ul_Command | 0x2;
164 else 164 else
165 ul_Command = ul_Command & 0xFFFFFFFD; 165 ul_Command = ul_Command & 0xFFFFFFFD;
diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c
index f540394d17b0..a3026a229e85 100644
--- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c
+++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c
@@ -689,17 +689,11 @@ static int i_APCI3200_Read1AnalogInputChannel(struct comedi_device *dev,
689 689
690 ui_CommandRegister = ui_ChannelNo | (ui_ChannelNo << 8) | 0x80000; 690 ui_CommandRegister = ui_ChannelNo | (ui_ChannelNo << 8) | 0x80000;
691 691
692 /*********************************/
693 /*Test if the interrupt is enable */ 692 /*Test if the interrupt is enable */
694 /*********************************/ 693 if (s_BoardInfos[dev->minor].i_InterruptFlag == 1) {
695
696 /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
697 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_ENABLE) {
698 /************************/
699 /* Enable the interrupt */ 694 /* Enable the interrupt */
700 /************************/
701 ui_CommandRegister = ui_CommandRegister | 0x00100000; 695 ui_CommandRegister = ui_CommandRegister | 0x00100000;
702 } /* if (i_InterruptFlag == ADDIDATA_ENABLE) */ 696 }
703 697
704 /******************************/ 698 /******************************/
705 /* Write the command register */ 699 /* Write the command register */
@@ -712,11 +706,8 @@ static int i_APCI3200_Read1AnalogInputChannel(struct comedi_device *dev,
712 outl(ui_CommandRegister, 706 outl(ui_CommandRegister,
713 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8); 707 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8);
714 708
715 /*****************************/
716 /*Test if interrupt is enable */ 709 /*Test if interrupt is enable */
717 /*****************************/ 710 if (s_BoardInfos[dev->minor].i_InterruptFlag == 0) {
718 /* if (i_InterruptFlag == ADDIDATA_DISABLE) */
719 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_DISABLE) {
720 do { 711 do {
721 /*************************/ 712 /*************************/
722 /*Read the EOC Status bit */ 713 /*Read the EOC Status bit */
@@ -738,7 +729,7 @@ static int i_APCI3200_Read1AnalogInputChannel(struct comedi_device *dev,
738 s_BoardInfos[dev->minor].i_Offset + 28); 729 s_BoardInfos[dev->minor].i_Offset + 28);
739 /* END JK 06.07.04: Management of sevrals boards */ 730 /* END JK 06.07.04: Management of sevrals boards */
740 731
741 } /* if (i_InterruptFlag == ADDIDATA_DISABLE) */ 732 }
742 return 0; 733 return 0;
743} 734}
744 735
@@ -800,20 +791,11 @@ static int i_APCI3200_ReadCalibrationOffsetValue(struct comedi_device *dev,
800 791
801 ui_CommandRegister = 0; 792 ui_CommandRegister = 0;
802 793
803 /*********************************/
804 /*Test if the interrupt is enable */ 794 /*Test if the interrupt is enable */
805 /*********************************/ 795 if (s_BoardInfos[dev->minor].i_InterruptFlag == 1) {
806
807 /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
808 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_ENABLE) {
809
810 /**********************/
811 /*Enable the interrupt */ 796 /*Enable the interrupt */
812 /**********************/
813
814 ui_CommandRegister = ui_CommandRegister | 0x00100000; 797 ui_CommandRegister = ui_CommandRegister | 0x00100000;
815 798 }
816 } /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
817 799
818 /**********************/ 800 /**********************/
819 /*Start the conversion */ 801 /*Start the conversion */
@@ -830,13 +812,8 @@ static int i_APCI3200_ReadCalibrationOffsetValue(struct comedi_device *dev,
830 outl(ui_CommandRegister, 812 outl(ui_CommandRegister,
831 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8); 813 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8);
832 814
833 /*****************************/
834 /*Test if interrupt is enable */ 815 /*Test if interrupt is enable */
835 /*****************************/ 816 if (s_BoardInfos[dev->minor].i_InterruptFlag == 0) {
836
837 /* if (i_InterruptFlag == ADDIDATA_DISABLE) */
838 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_DISABLE) {
839
840 do { 817 do {
841 /*******************/ 818 /*******************/
842 /*Read the EOC flag */ 819 /*Read the EOC flag */
@@ -856,7 +833,7 @@ static int i_APCI3200_ReadCalibrationOffsetValue(struct comedi_device *dev,
856 data[0] = 833 data[0] =
857 inl(devpriv->iobase + 834 inl(devpriv->iobase +
858 s_BoardInfos[dev->minor].i_Offset + 28); 835 s_BoardInfos[dev->minor].i_Offset + 28);
859 } /* if (i_InterruptFlag == ADDIDATA_DISABLE) */ 836 }
860 return 0; 837 return 0;
861} 838}
862 839
@@ -915,20 +892,11 @@ static int i_APCI3200_ReadCalibrationGainValue(struct comedi_device *dev,
915 892
916 ui_CommandRegister = 0; 893 ui_CommandRegister = 0;
917 894
918 /*********************************/
919 /*Test if the interrupt is enable */ 895 /*Test if the interrupt is enable */
920 /*********************************/ 896 if (s_BoardInfos[dev->minor].i_InterruptFlag == 1) {
921
922 /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
923 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_ENABLE) {
924
925 /**********************/
926 /*Enable the interrupt */ 897 /*Enable the interrupt */
927 /**********************/
928
929 ui_CommandRegister = ui_CommandRegister | 0x00100000; 898 ui_CommandRegister = ui_CommandRegister | 0x00100000;
930 899 }
931 } /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
932 900
933 /**********************/ 901 /**********************/
934 /*Start the conversion */ 902 /*Start the conversion */
@@ -945,13 +913,8 @@ static int i_APCI3200_ReadCalibrationGainValue(struct comedi_device *dev,
945 outl(ui_CommandRegister, 913 outl(ui_CommandRegister,
946 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8); 914 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8);
947 915
948 /*****************************/
949 /*Test if interrupt is enable */ 916 /*Test if interrupt is enable */
950 /*****************************/ 917 if (s_BoardInfos[dev->minor].i_InterruptFlag == 0) {
951
952 /* if (i_InterruptFlag == ADDIDATA_DISABLE) */
953 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_DISABLE) {
954
955 do { 918 do {
956 919
957 /*******************/ 920 /*******************/
@@ -973,7 +936,7 @@ static int i_APCI3200_ReadCalibrationGainValue(struct comedi_device *dev,
973 inl(devpriv->iobase + 936 inl(devpriv->iobase +
974 s_BoardInfos[dev->minor].i_Offset + 28); 937 s_BoardInfos[dev->minor].i_Offset + 28);
975 938
976 } /* if (i_InterruptFlag == ADDIDATA_DISABLE) */ 939 }
977 return 0; 940 return 0;
978} 941}
979 942
@@ -1020,14 +983,9 @@ static int i_APCI3200_ReadCJCValue(struct comedi_device *dev,
1020 /*Initialise dw_CommandRegister */ 983 /*Initialise dw_CommandRegister */
1021 /*******************************/ 984 /*******************************/
1022 ui_CommandRegister = 0; 985 ui_CommandRegister = 0;
1023 /*********************************/
1024 /*Test if the interrupt is enable */ 986 /*Test if the interrupt is enable */
1025 /*********************************/ 987 if (s_BoardInfos[dev->minor].i_InterruptFlag == 1) {
1026 /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
1027 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_ENABLE) {
1028 /**********************/
1029 /*Enable the interrupt */ 988 /*Enable the interrupt */
1030 /**********************/
1031 ui_CommandRegister = ui_CommandRegister | 0x00100000; 989 ui_CommandRegister = ui_CommandRegister | 0x00100000;
1032 } 990 }
1033 991
@@ -1047,12 +1005,8 @@ static int i_APCI3200_ReadCJCValue(struct comedi_device *dev,
1047 outl(ui_CommandRegister, 1005 outl(ui_CommandRegister,
1048 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8); 1006 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8);
1049 1007
1050 /*****************************/
1051 /*Test if interrupt is enable */ 1008 /*Test if interrupt is enable */
1052 /*****************************/ 1009 if (s_BoardInfos[dev->minor].i_InterruptFlag == 0) {
1053
1054 /* if (i_InterruptFlag == ADDIDATA_DISABLE) */
1055 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_DISABLE) {
1056 do { 1010 do {
1057 1011
1058 /*******************/ 1012 /*******************/
@@ -1073,8 +1027,7 @@ static int i_APCI3200_ReadCJCValue(struct comedi_device *dev,
1073 data[0] = 1027 data[0] =
1074 inl(devpriv->iobase + 1028 inl(devpriv->iobase +
1075 s_BoardInfos[dev->minor].i_Offset + 28); 1029 s_BoardInfos[dev->minor].i_Offset + 28);
1076 1030 }
1077 } /* if (i_InterruptFlag == ADDIDATA_DISABLE) */
1078 return 0; 1031 return 0;
1079} 1032}
1080 1033
@@ -1128,17 +1081,10 @@ static int i_APCI3200_ReadCJCCalOffset(struct comedi_device *dev,
1128 /*Initialise ui_CommandRegister */ 1081 /*Initialise ui_CommandRegister */
1129 /*******************************/ 1082 /*******************************/
1130 ui_CommandRegister = 0; 1083 ui_CommandRegister = 0;
1131 /*********************************/
1132 /*Test if the interrupt is enable */ 1084 /*Test if the interrupt is enable */
1133 /*********************************/ 1085 if (s_BoardInfos[dev->minor].i_InterruptFlag == 1) {
1134
1135 /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
1136 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_ENABLE) {
1137 /**********************/
1138 /*Enable the interrupt */ 1086 /*Enable the interrupt */
1139 /**********************/
1140 ui_CommandRegister = ui_CommandRegister | 0x00100000; 1087 ui_CommandRegister = ui_CommandRegister | 0x00100000;
1141
1142 } 1088 }
1143 1089
1144 /**********************/ 1090 /**********************/
@@ -1154,8 +1100,7 @@ static int i_APCI3200_ReadCJCCalOffset(struct comedi_device *dev,
1154 /* outl(ui_CommandRegister,devpriv->iobase+i_Offset + 8); */ 1100 /* outl(ui_CommandRegister,devpriv->iobase+i_Offset + 8); */
1155 outl(ui_CommandRegister, 1101 outl(ui_CommandRegister,
1156 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8); 1102 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8);
1157 /* if (i_InterruptFlag == ADDIDATA_DISABLE) */ 1103 if (s_BoardInfos[dev->minor].i_InterruptFlag == 0) {
1158 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_DISABLE) {
1159 do { 1104 do {
1160 /*******************/ 1105 /*******************/
1161 /*Read the EOC flag */ 1106 /*Read the EOC flag */
@@ -1172,7 +1117,7 @@ static int i_APCI3200_ReadCJCCalOffset(struct comedi_device *dev,
1172 data[0] = 1117 data[0] =
1173 inl(devpriv->iobase + 1118 inl(devpriv->iobase +
1174 s_BoardInfos[dev->minor].i_Offset + 28); 1119 s_BoardInfos[dev->minor].i_Offset + 28);
1175 } /* if (i_InterruptFlag == ADDIDATA_DISABLE) */ 1120 }
1176 return 0; 1121 return 0;
1177} 1122}
1178 1123
@@ -1224,14 +1169,9 @@ static int i_APCI3200_ReadCJCCalGain(struct comedi_device *dev,
1224 /*Initialise dw_CommandRegister */ 1169 /*Initialise dw_CommandRegister */
1225 /*******************************/ 1170 /*******************************/
1226 ui_CommandRegister = 0; 1171 ui_CommandRegister = 0;
1227 /*********************************/
1228 /*Test if the interrupt is enable */ 1172 /*Test if the interrupt is enable */
1229 /*********************************/ 1173 if (s_BoardInfos[dev->minor].i_InterruptFlag == 1) {
1230 /* if (i_InterruptFlag == ADDIDATA_ENABLE) */
1231 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_ENABLE) {
1232 /**********************/
1233 /*Enable the interrupt */ 1174 /*Enable the interrupt */
1234 /**********************/
1235 ui_CommandRegister = ui_CommandRegister | 0x00100000; 1175 ui_CommandRegister = ui_CommandRegister | 0x00100000;
1236 } 1176 }
1237 /**********************/ 1177 /**********************/
@@ -1247,8 +1187,7 @@ static int i_APCI3200_ReadCJCCalGain(struct comedi_device *dev,
1247 /* outl(ui_CommandRegister ,devpriv->iobase+i_Offset + 8); */ 1187 /* outl(ui_CommandRegister ,devpriv->iobase+i_Offset + 8); */
1248 outl(ui_CommandRegister, 1188 outl(ui_CommandRegister,
1249 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8); 1189 devpriv->iobase + s_BoardInfos[dev->minor].i_Offset + 8);
1250 /* if (i_InterruptFlag == ADDIDATA_DISABLE) */ 1190 if (s_BoardInfos[dev->minor].i_InterruptFlag == 0) {
1251 if (s_BoardInfos[dev->minor].i_InterruptFlag == ADDIDATA_DISABLE) {
1252 do { 1191 do {
1253 /*******************/ 1192 /*******************/
1254 /*Read the EOC flag */ 1193 /*Read the EOC flag */
@@ -1264,7 +1203,7 @@ static int i_APCI3200_ReadCJCCalGain(struct comedi_device *dev,
1264 data[0] = 1203 data[0] =
1265 inl(devpriv->iobase + 1204 inl(devpriv->iobase +
1266 s_BoardInfos[dev->minor].i_Offset + 28); 1205 s_BoardInfos[dev->minor].i_Offset + 28);
1267 } /* if (i_InterruptFlag == ADDIDATA_DISABLE) */ 1206 }
1268 return 0; 1207 return 0;
1269} 1208}
1270 1209
@@ -2136,8 +2075,7 @@ static int apci3200_ai_bits_test(struct comedi_device *dev,
2136 i_ADDIDATAConversionTimeUnit= 1; */ 2075 i_ADDIDATAConversionTimeUnit= 1; */
2137 /* i_Temp= i_InterruptFlag ; */ 2076 /* i_Temp= i_InterruptFlag ; */
2138 i_Temp = s_BoardInfos[dev->minor].i_InterruptFlag; 2077 i_Temp = s_BoardInfos[dev->minor].i_InterruptFlag;
2139 /* i_InterruptFlag = ADDIDATA_DISABLE; */ 2078 s_BoardInfos[dev->minor].i_InterruptFlag = 0;
2140 s_BoardInfos[dev->minor].i_InterruptFlag = ADDIDATA_DISABLE;
2141 i_APCI3200_Read1AnalogInputChannel(dev, s, insn, data); 2079 i_APCI3200_Read1AnalogInputChannel(dev, s, insn, data);
2142 /* if(i_AutoCalibration == FALSE) */ 2080 /* if(i_AutoCalibration == FALSE) */
2143 if (s_BoardInfos[dev->minor].i_AutoCalibration == FALSE) { 2081 if (s_BoardInfos[dev->minor].i_AutoCalibration == FALSE) {
@@ -2176,8 +2114,7 @@ static int apci3200_ai_bits_test(struct comedi_device *dev,
2176 i_ADDIDATAConversionTimeUnit= 1; */ 2114 i_ADDIDATAConversionTimeUnit= 1; */
2177 /* i_Temp= i_InterruptFlag ; */ 2115 /* i_Temp= i_InterruptFlag ; */
2178 i_Temp = s_BoardInfos[dev->minor].i_InterruptFlag; 2116 i_Temp = s_BoardInfos[dev->minor].i_InterruptFlag;
2179 /* i_InterruptFlag = ADDIDATA_DISABLE; */ 2117 s_BoardInfos[dev->minor].i_InterruptFlag = 0;
2180 s_BoardInfos[dev->minor].i_InterruptFlag = ADDIDATA_DISABLE;
2181 i_APCI3200_Read1AnalogInputChannel(dev, s, insn, data); 2118 i_APCI3200_Read1AnalogInputChannel(dev, s, insn, data);
2182 /* if(i_AutoCalibration == FALSE) */ 2119 /* if(i_AutoCalibration == FALSE) */
2183 if (s_BoardInfos[dev->minor].i_AutoCalibration == FALSE) { 2120 if (s_BoardInfos[dev->minor].i_AutoCalibration == FALSE) {