Changeset 5263
- Timestamp:
- 05/24/08 08:58:19 (6 months ago)
- Files:
-
- lm-sensors/trunk/prog/detect/sensors-detect (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/prog/detect/sensors-detect
r5259 r5263 4345 4345 return if ($verstep & 0xf0) != 0x60; 4346 4346 4347 if ($vendor == 0x41) # Analog Devices 4348 { 4347 if ($vendor == 0x41) { # Analog Devices 4349 4348 return if i2c_smbus_read_byte_data($file, 0x3d) != 0x27; 4350 4349 return (8); 4351 4350 } 4352 4351 4353 if ($vendor == 0x5c) # SMSC 4354 { 4352 if ($vendor == 0x5c) { # SMSC 4355 4353 # Return undef if this is a SCH5027 4356 4354 return if $verstep >= 0x69 and … … 4787 4785 4788 4786 # Check unused bits 4789 if ($chip == 5) # LM84 4790 { 4787 if ($chip == 5) { # LM84 4791 4788 return if ($status & 0xab) != 0; 4792 4789 return if ($conf & 0x7f) != 0; 4793 } 4794 else 4795 { 4790 } else { 4796 4791 return if ($status & 0x03) != 0; 4797 4792 return if ($conf & 0x3f) != 0; … … 4803 4798 # discard the chip if any fail. Note that these checks are not done 4804 4799 # by the adm1021 driver. 4805 if ($chip == 2 || $chip == 5) 4806 { 4800 if ($chip == 2 || $chip == 5) { 4807 4801 my $lte = i2c_smbus_read_byte_data($file, 0x00); 4808 4802 my $rte = i2c_smbus_read_byte_data($file, 0x01); … … 4821 4815 return if ($lhi & 0x80) or ($rhi & 0x80); 4822 4816 # Low limits over high limits 4823 if ($chip != 5) # LM84 doesn't have low limits 4824 { 4817 if ($chip != 5) { # LM84 doesn't have low limits 4825 4818 $llo-=256 if ($llo & 0x80); 4826 4819 $rlo-=256 if ($rlo & 0x80);
