mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
(mds) don't register address or update values for 2nd "lm75" in a w83783s
because there is only one. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@777 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f1c7367ebf
commit
c73a081460
1 file changed
+12
-7
+12
-7
@@ -858,6 +858,8 @@ int w83781d_detect(struct i2c_adapter *adapter, int address,
|
||||
else
|
||||
goto ERROR5;
|
||||
}
|
||||
if (kind == w83783s)
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
data->lm75 = NULL;
|
||||
@@ -934,7 +936,8 @@ int w83781d_detach_client(struct i2c_client *client)
|
||||
(((struct
|
||||
w83781d_data *) (client->data))->
|
||||
lm75[0]));
|
||||
i2c_detach_client(&
|
||||
if((((struct w83781d_data *) (client->data))->type) != w83783s);
|
||||
i2c_detach_client(&
|
||||
(((struct
|
||||
w83781d_data *) (client->data))->
|
||||
lm75[1]));
|
||||
@@ -1382,12 +1385,14 @@ void w83781d_update_client(struct i2c_client *client)
|
||||
w83781d_read_value(client, W83781D_REG_TEMP2_OVER);
|
||||
data->temp_add_hyst[0] =
|
||||
w83781d_read_value(client, W83781D_REG_TEMP2_HYST);
|
||||
data->temp_add[1] =
|
||||
w83781d_read_value(client, W83781D_REG_TEMP3);
|
||||
data->temp_add_over[1] =
|
||||
w83781d_read_value(client, W83781D_REG_TEMP3_OVER);
|
||||
data->temp_add_hyst[1] =
|
||||
w83781d_read_value(client, W83781D_REG_TEMP3_HYST);
|
||||
if (data->type != w83783s) {
|
||||
data->temp_add[1] =
|
||||
w83781d_read_value(client, W83781D_REG_TEMP3);
|
||||
data->temp_add_over[1] =
|
||||
w83781d_read_value(client, W83781D_REG_TEMP3_OVER);
|
||||
data->temp_add_hyst[1] =
|
||||
w83781d_read_value(client, W83781D_REG_TEMP3_HYST);
|
||||
}
|
||||
i = w83781d_read_value(client, W83781D_REG_VID_FANDIV);
|
||||
data->vid = i & 0x0f;
|
||||
data->vid |=
|
||||
|
||||
Reference in new issue
Block a user