(dan) Corrected bug in writing of external temp threshold.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1286 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Dan Eaton committed 2002-01-12 05:00:41 +00:00
1 parent b51767b170
commit f6d20d4a25
1 file changed
+2 -2
+2 -2
View File
@@ -898,7 +898,7 @@ void lm87_temp(struct i2c_client *client, int operation, int ctl_name,
if (ctl_name == LM87_SYSCTL_TEMP2) {
data->ext_temp_max = TEMP_LIMIT_TO_REG(results[0]);
lm87_write_value(client, LM87_REG_EXT_TEMP_1_HIGH,
data->int_temp_max);
data->ext_temp_max);
}
if (ctl_name == LM87_SYSCTL_TEMP1) {
data->int_temp_max = TEMP_LIMIT_TO_REG(results[0]);
@@ -915,7 +915,7 @@ void lm87_temp(struct i2c_client *client, int operation, int ctl_name,
if (ctl_name == LM87_SYSCTL_TEMP2) {
data->ext_temp_min = TEMP_LIMIT_TO_REG(results[1]);
lm87_write_value(client, LM87_REG_EXT_TEMP_1_LOW,
data->int_temp_min);
data->ext_temp_min);
}
if (ctl_name == LM87_SYSCTL_TEMP1) {
data->int_temp_min = TEMP_LIMIT_TO_REG(results[1]);