Changeset 5333

Show
Ignore:
Timestamp:
09/10/08 09:28:17 (6 years ago)
Author:
khali
Message:

Prevent misdetection of W83627DHG (and more generally, Winbond chips)
on I2C as LM78.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5319 r5333  
    1212                          Add ITE IT8720 support 
    1313                          Add Texas Instruments TMP411 support 
     14                          Prevent misdetection of W83627DHG on I2C as LM78 
    1415 
    15162.10.7 (20080701) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5316 r5333  
    35483548                    ($chip == 1 and $reg == 0x40) or 
    35493549                    ($chip == 2 and ($reg & 0xfe) == 0xc0); 
     3550 
     3551  # Explicitly prevent misdetection of Winbond chips 
     3552  $reg = i2c_smbus_read_byte_data($file, 0x4f); 
     3553  return if $reg == 0xa3 || $reg == 0x5c; 
     3554 
    35503555  return (6); 
    35513556}