mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-20 19:41:47 +00:00
fix sg_tlx /proc entries. Ticket #1476.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2159 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
fb12997188
commit
cd79c469b2
2 files changed
+10
-5
No files matched your search
+5
-5
@@ -888,23 +888,23 @@ void it87_sgtl(struct i2c_client *client, int operation, int ctl_name,
|
||||
} else if (operation == SENSORS_PROC_REAL_WRITE) {
|
||||
if (*nrels_mag >= 1) {
|
||||
data->sg_tl[nr - 1][0] = TEMP_TO_REG(results[0]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_OFF(nr), data->sg_pwm[nr - 1][0]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_OFF(nr), data->sg_tl[nr - 1][0]);
|
||||
}
|
||||
if (*nrels_mag >= 2) {
|
||||
data->sg_tl[nr - 1][1] = TEMP_TO_REG(results[1]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_LOW(nr), data->sg_pwm[nr - 1][1]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_LOW(nr), data->sg_tl[nr - 1][1]);
|
||||
}
|
||||
if (*nrels_mag >= 3) {
|
||||
data->sg_tl[nr - 1][2] = TEMP_TO_REG(results[2]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_MED(nr), data->sg_pwm[nr - 1][2]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_MED(nr), data->sg_tl[nr - 1][2]);
|
||||
}
|
||||
if (*nrels_mag >= 4) {
|
||||
data->sg_tl[nr - 1][3] = TEMP_TO_REG(results[3]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_HI(nr), data->sg_pwm[nr - 1][3]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_HI(nr), data->sg_tl[nr - 1][3]);
|
||||
}
|
||||
if (*nrels_mag >= 5) {
|
||||
data->sg_tl[nr - 1][4] = TEMP_TO_REG(results[4]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_OVR(nr), data->sg_pwm[nr - 1][4]);
|
||||
it87_write_value(client, IT87_REG_SG_TL_OVR(nr), data->sg_tl[nr - 1][4]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user