Changeset 5331

Show
Ignore:
Timestamp:
09/10/08 09:22:06 (5 years ago)
Author:
khali
Message:

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

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5329 r5331  
    3232                  Add ITE IT8720 support 
    3333                  Add Texas Instruments TMP411 support 
     34                  Prevent misdetection of W83627DHG on I2C as LM78 
    3435 
    35363.0.2 (2008-05-18) 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5315 r5331  
    36143614                    ($chip == 1 and $reg == 0x40) or 
    36153615                    ($chip == 2 and ($reg & 0xfe) == 0xc0); 
     3616 
     3617  # Explicitly prevent misdetection of Winbond chips 
     3618  $reg = i2c_smbus_read_byte_data($file, 0x4f); 
     3619  return if $reg == 0xa3 || $reg == 0x5c; 
     3620 
    36163621  return (6); 
    36173622}