Changeset 5994 for lm-sensors/trunk/prog

Show
Ignore:
Timestamp:
08/31/11 10:34:15 (9 months ago)
Author:
khali
Message:

Make LM73 detection less problematic.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5993 r5994  
    40454045        return if ($conf & 0x0c) or ($status & 0x10); 
    40464046 
    4047         return if i2c_smbus_read_word_data($file, 0x07) != 0x9001; 
     4047        # Test with byte read first to avoid confusing other chips 
     4048        return if i2c_smbus_read_byte_data($file, 0x07) != 0x01 
     4049               or i2c_smbus_read_word_data($file, 0x07) != 0x9001; 
    40484050 
    40494051        # Make sure the chip supports SMBus read word transactions