Changeset 5120
- Timestamp:
- 02/08/08 20:10:35 (5 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
kernel/chips/lm90.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r5119 r5120 14 14 Module gl518sm: Fix fan speed reading (2.6 backport) 15 15 Module gl520sm: Fix fan speed reading (2.6 backport) 16 Module lm90: Use generic i2c reads during detection (2.6 backport) 16 17 Program decode-dimms.pl: Fix DDR2 SDRAM module speed decoding 17 18 Update manufacturer IDs. -
lm-sensors/trunk/kernel/chips/lm90.c
r4608 r5120 396 396 397 397 if (kind < 0) { /* detection and identification */ 398 u8man_id, chip_id, reg_config1, reg_convrate;399 400 if ( lm90_read_reg(new_client, LM90_REG_R_MAN_ID,401 &man_id) < 0402 || lm90_read_reg(new_client, LM90_REG_R_CHIP_ID,403 &chip_id) < 0404 || lm90_read_reg(new_client, LM90_REG_R_CONFIG1,405 ®_config1) < 0406 || lm90_read_reg(new_client, LM90_REG_R_CONVRATE,407 ®_convrate) < 0)398 int man_id, chip_id, reg_config1, reg_convrate; 399 400 if ((man_id = i2c_smbus_read_byte_data(new_client, 401 LM90_REG_R_MAN_ID)) < 0 402 || (chip_id = i2c_smbus_read_byte_data(new_client, 403 LM90_REG_R_CHIP_ID)) < 0 404 || (reg_config1 = i2c_smbus_read_byte_data(new_client, 405 LM90_REG_R_CONFIG1)) < 0 406 || (reg_convrate = i2c_smbus_read_byte_data(new_client, 407 LM90_REG_R_CONVRATE)) < 0) 408 408 goto exit_free; 409 409 410 410 if (man_id == 0x01) { /* National Semiconductor */ 411 u8reg_config2;412 413 if ( lm90_read_reg(new_client, LM90_REG_R_CONFIG2,414 ®_config2) < 0)411 int reg_config2; 412 413 if ((reg_config2 = i2c_smbus_read_byte_data(new_client, 414 LM90_REG_R_CONFIG2)) < 0) 415 415 goto exit_free; 416 416
