mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +00:00
Stop updating non-existent vid on IT8705F.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2940 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
a7fe97cf1d
commit
72a3c7ac3b
1 file changed
+3
-4
+3
-4
@@ -567,6 +567,9 @@ int it87_detect(struct i2c_adapter *adapter, int address,
|
||||
data->valid = 0;
|
||||
init_MUTEX(&data->update_lock);
|
||||
|
||||
/* The IT8705F doesn't have VID capability */
|
||||
data->vid = 0x1f;
|
||||
|
||||
/* Tell the I2C layer a new client has arrived */
|
||||
if ((err = i2c_attach_client(new_client)))
|
||||
goto ERROR3;
|
||||
@@ -744,14 +747,10 @@ static void it87_update_client(struct i2c_client *client)
|
||||
it87_read_value(client, IT87_REG_TEMP_LOW(i));
|
||||
}
|
||||
|
||||
/* The 8705 does not have VID capability */
|
||||
if (data->type == it8712) {
|
||||
data->vid = it87_read_value(client, IT87_REG_VID);
|
||||
data->vid &= 0x1f;
|
||||
}
|
||||
else {
|
||||
data->vid = 0x1f;
|
||||
}
|
||||
|
||||
i = it87_read_value(client, IT87_REG_FAN_DIV);
|
||||
data->fan_div[0] = i & 0x07;
|
||||
|
||||
Reference in new issue
Block a user