mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-26 12:24:33 +00:00
fixed adm1025 temp2 min/max writes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1140 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
fd06630e8b
commit
1abb44a2e3
2 files changed
+3
-2
No files matched your search
@@ -20,6 +20,7 @@ ask CVS about it:
|
||||
2.6.1 (2001????)
|
||||
File doc/chips/adm1021: Claim support for Philips NE1617, NE1617A
|
||||
Module i2c-ali15x3: Allow force_addr=0xaddr; enable if not enabled.
|
||||
Module adm1025: Fixed temp2 min/max writes
|
||||
Module w83781d: Fix fan speed for as99127f (broken by 2.6.0)
|
||||
Program sensors-detect: Fix ADM1024 and ADM1025 detection.
|
||||
|
||||
|
||||
@@ -638,12 +638,12 @@ void adm1025_rm_temp(struct i2c_client *client, int operation, int ctl_name,
|
||||
*nrels_mag = 3;
|
||||
} else if (operation == SENSORS_PROC_REAL_WRITE) {
|
||||
if (*nrels_mag >= 1) {
|
||||
data->temp_max = TEMP_LIMIT_TO_REG(results[0]);
|
||||
data->rtemp_max = TEMP_LIMIT_TO_REG(results[0]);
|
||||
adm1025_write_value(client, ADM1025_REG_RTEMP_HIGH,
|
||||
data->rtemp_max);
|
||||
}
|
||||
if (*nrels_mag >= 2) {
|
||||
data->temp_min = TEMP_LIMIT_TO_REG(results[1]);
|
||||
data->rtemp_min = TEMP_LIMIT_TO_REG(results[1]);
|
||||
adm1025_write_value(client, ADM1025_REG_RTEMP_LOW,
|
||||
data->rtemp_min);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user