Changeset 5262
- Timestamp:
- 05/24/08 08:56:33 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5261 r5262 4398 4398 } 4399 4399 4400 if ($vendor == 0x41) # Analog Devices 4401 { 4400 if ($vendor == 0x41) { # Analog Devices 4402 4401 return if i2c_smbus_read_byte_data($file, 0x3d) != 0x27; 4403 4402 return (8); … … 4833 4832 4834 4833 # Check unused bits 4835 if ($chip == 5) # LM84 4836 { 4834 if ($chip == 5) { # LM84 4837 4835 return if ($status & 0xab) != 0; 4838 4836 return if ($conf & 0x7f) != 0; 4839 } 4840 else 4841 { 4837 } else { 4842 4838 return if ($status & 0x03) != 0; 4843 4839 return if ($conf & 0x3f) != 0; … … 4849 4845 # discard the chip if any fail. Note that these checks are not done 4850 4846 # by the adm1021 driver. 4851 if ($chip == 2 || $chip == 5) 4852 { 4847 if ($chip == 2 || $chip == 5) { 4853 4848 my $lte = i2c_smbus_read_byte_data($file, 0x00); 4854 4849 my $rte = i2c_smbus_read_byte_data($file, 0x01); … … 4867 4862 return if ($lhi & 0x80) or ($rhi & 0x80); 4868 4863 # Low limits over high limits 4869 if ($chip != 5) # LM84 doesn't have low limits 4870 { 4864 if ($chip != 5) { # LM84 doesn't have low limits 4871 4865 $llo-=256 if ($llo & 0x80); 4872 4866 $rlo-=256 if ($rlo & 0x80);
