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:
Mark D. Studebaker committed 2003-12-13 01:09:50 +00:00
1 parent fb12997188
commit cd79c469b2
2 files changed
+10 -5

No files matched your search

+5
View File
@@ -16,6 +16,10 @@ ask CVS about it:
cvs diff -r V2-0-0 -r V2-0-1 -u
-----------------------------------------------------------------------------
2.8.2 (2004????)
Module it87: Fix sg_tlx /proc entries
2.8.2 (20031211)
IMPORTANT: Limit initialization removed from all chip drivers!
If you didn't run 'sensors -s' in the past you may need to now!
@@ -50,6 +54,7 @@ ask CVS about it:
add it87 sensor type support
Module lm90: Add ADM1032 support
Module w83781d: Fix 791d and 627hf detection
Module w83627hf: Add VID support
Program dmidecode: Remove (sensors-detect doesn't need it anymore)
Program eeprog: New
Programs i2cdetect, i2cdump, i2cset: add -v (version) option;
+5 -5
View File
@@ -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]);
}
}
}