Changeset 584
- Timestamp:
- 09/27/99 16:19:46 (14 years ago)
- Location:
- lm-sensors/trunk/kernel
- Files:
-
- 16 modified
-
chips/adm1021.c (modified) (1 diff)
-
chips/adm9240.c (modified) (1 diff)
-
chips/bt869.c (modified) (1 diff)
-
chips/eeprom.c (modified) (1 diff)
-
chips/gl518sm.c (modified) (1 diff)
-
chips/gl520sm.c (modified) (1 diff)
-
chips/lm75.c (modified) (1 diff)
-
chips/lm78.c (modified) (1 diff)
-
chips/lm80.c (modified) (1 diff)
-
chips/ltc1710.c (modified) (1 diff)
-
chips/matorb.c (modified) (1 diff)
-
chips/maxilife.c (modified) (4 diffs)
-
chips/sis5595.c (modified) (1 diff)
-
chips/thmc50.c (modified) (1 diff)
-
chips/w83781d.c (modified) (1 diff)
-
sensors.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/adm1021.c
r582 r584 208 208 #endif 209 209 210 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA)) 211 goto ERROR0; 210 212 211 213 /* We need address registration for the I2C bus too. That is not yet -
lm-sensors/trunk/kernel/chips/adm9240.c
r582 r584 362 362 #endif 363 363 364 if (i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA)) 365 goto ERROR0; 366 364 367 /* We need address registration for the I2C bus too. That is not yet 365 368 implemented. */ -
lm-sensors/trunk/kernel/chips/bt869.c
r582 r584 179 179 #endif 180 180 181 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_READ_BYTE| 182 I2C_FUNC_SMBUS_WRITE_BYTE_DATA)) 183 goto ERROR0; 184 181 185 /* Here, we have to do the address registration check for the I2C bus. 182 186 But that is not yet implemented. */ -
lm-sensors/trunk/kernel/chips/eeprom.c
r582 r584 173 173 } 174 174 #endif 175 176 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA | 177 I2C_FUNC_SMBUS_WRITE_WORD_DATA)) 178 goto ERROR0; 175 179 176 180 /* Here, we have to do the address registration check for the I2C bus. -
lm-sensors/trunk/kernel/chips/gl518sm.c
r563 r584 304 304 #endif 305 305 306 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA | 307 I2C_FUNC_SMBUS_WORD_DATA)) 308 goto ERROR0; 306 309 307 310 /* We need address registration for the I2C bus too. That is not yet -
lm-sensors/trunk/kernel/chips/gl520sm.c
r582 r584 306 306 #endif 307 307 308 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA| 309 I2C_FUNC_SMBUS_WORD_DATA)) 310 goto ERROR0; 308 311 309 312 /* We need address registration for the I2C bus too. That is not yet -
lm-sensors/trunk/kernel/chips/lm75.c
r582 r584 152 152 } 153 153 #endif 154 155 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA | 156 I2C_FUNC_SMBUS_WORD_DATA)) 157 goto ERROR0; 154 158 155 159 /* Here, we have to do the address registration check for the I2C bus. -
lm-sensors/trunk/kernel/chips/lm78.c
r582 r584 314 314 int is_isa = i2c_is_isa_adapter(adapter); 315 315 316 if (!is_isa && ! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA)) 317 goto ERROR0; 318 316 319 /* We need address registration for the I2C bus too. That is not yet 317 320 implemented. */ -
lm-sensors/trunk/kernel/chips/lm80.c
r582 r584 300 300 #endif 301 301 302 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA)) 303 goto ERROR0; 304 302 305 /* Here, we have to do the address registration check for the I2C bus. 303 306 But that is not yet implemented. */ -
lm-sensors/trunk/kernel/chips/ltc1710.c
r582 r584 167 167 #endif 168 168 169 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE)) 170 goto ERROR0; 171 169 172 /* Here, we have to do the address registration check for the I2C bus. 170 173 But that is not yet implemented. */ -
lm-sensors/trunk/kernel/chips/matorb.c
r582 r584 139 139 #endif 140 140 141 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_WRITE_BYTE | 142 I2C_FUNC_SMBUS_WRITE_BYTE_DATA)) 143 goto ERROR0; 144 145 141 146 /* Here, we have to do the address registration check for the I2C bus. 142 147 But that is not yet implemented. */ -
lm-sensors/trunk/kernel/chips/maxilife.c
r582 r584 50 50 #include "version.h" 51 51 #include "sensors.h" 52 #include "i2c-isa.h" 52 53 #include "compat.h" 53 54 … … 265 266 int maxi_attach_adapter(struct i2c_adapter *adapter) 266 267 { 267 return maxi_detect_smbus(adapter); 268 if (i2c_is_isa_adapter(adapter)) 269 return 0; 270 else 271 return maxi_detect_smbus(adapter); 268 272 } 269 273 … … 289 293 /* OK, this is no detection. I know. It will do for now, though. */ 290 294 err = 0; 295 296 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA)) 297 goto ERROR0; 298 291 299 for (address = 0x10; (! err) && (address <= 0x14); address++) { 292 300 … … 376 384 kfree(new_client); 377 385 } 386 ERROR0: 378 387 return err; 379 388 } -
lm-sensors/trunk/kernel/chips/sis5595.c
r582 r584 313 313 const char *client_name = ""; 314 314 315 /* Make sure we are probing the ISA bus!! This is just a safety check 316 at this moment; sensors_detect really won't call us for I2C busses. */ 317 #ifdef DEBUG 315 /* Make sure we are probing the ISA bus!! */ 318 316 if (!i2c_is_isa_adapter(adapter)) { 319 317 printk("sis5595.o: sis5595_detect called for an I2C bus adapter?!?\n"); 320 318 return 0; 321 319 } 322 #endif323 320 324 321 if (check_region(address,SIS5595_EXTENT)) -
lm-sensors/trunk/kernel/chips/thmc50.c
r582 r584 199 199 #endif 200 200 201 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA)) 202 goto ERROR0; 203 201 204 /* Here, we have to do the address registration check for the I2C bus. 202 205 But that is not yet implemented. */ -
lm-sensors/trunk/kernel/chips/w83781d.c
r582 r584 646 646 int is_isa = i2c_is_isa_adapter(adapter); 647 647 648 if (!is_isa && ! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA)) 649 goto ERROR0; 650 648 651 /* We need address registration for the I2C bus too. That is not yet 649 652 implemented. */ -
lm-sensors/trunk/kernel/sensors.c
r535 r584 595 595 int adapter_id = is_isa?SENSORS_ISA_BUS:i2c_adapter_id(adapter); 596 596 597 /* Forget it if we can't probe using SMBUS_QUICK */ 598 if ((! is_isa) && ! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_QUICK)) 599 return -1; 600 597 601 for (addr = 0x00; 598 602 addr <= (is_isa?0xffff:0x7f);
