mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +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
@@ -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