mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
fix broken ADM1024 and ADM1025 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1136 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -20,6 +20,7 @@ ask CVS about it:
|
||||
2.6.1 (2001????)
|
||||
Module i2c-ali15x3: Allow force_addr=0xaddr; enable if not enabled.
|
||||
Module w83781d: Fix fan speed for as99127f (broken by 2.6.0)
|
||||
Program sensors-detect: Fix ADM1024 and ADM1025 detection.
|
||||
|
||||
2.6.0 (20010612)
|
||||
NOTE: i2c-2.6.0 MUST BE be compiled AND installed first!!!
|
||||
|
@@ -1863,7 +1863,7 @@ sub adm1025_detect
|
||||
$reg = i2c_smbus_read_byte_data($file,0x3e);
|
||||
return unless ($reg == 0x41);
|
||||
return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00;
|
||||
return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xc0) == 0x20;
|
||||
return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xf0) == 0x20;
|
||||
return (8);
|
||||
}
|
||||
|
||||
@@ -1883,7 +1883,7 @@ sub adm1024_detect
|
||||
$reg = i2c_smbus_read_byte_data($file,0x3e);
|
||||
return unless ($reg == 0x41);
|
||||
return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00;
|
||||
return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xe0) == 0x20;
|
||||
return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xf0) == 0x10;
|
||||
return (8);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user