mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-18 19:30:54 +00:00
fixed vid4 - was >> 4 now << 4.
Thanks Jeff Dairiki. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@329 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
10bf57b3e7
commit
6a45415e5e
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -544,7 +544,7 @@ void lm78_init_client(struct i2c_client *client)
|
||||
|
||||
vid = lm78_read_value(client,LM78_REG_VID_FANDIV) & 0x0f;
|
||||
if (((struct lm78_data *) (client->data))->type == lm79)
|
||||
vid |= (lm78_read_value(client,LM78_REG_CHIPID) & 0x01) >> 4;
|
||||
vid |= (lm78_read_value(client,LM78_REG_CHIPID) & 0x01) << 4;
|
||||
else
|
||||
vid |= 0x10;
|
||||
vid = VID_FROM_REG(vid);
|
||||
@@ -606,7 +606,7 @@ void lm78_update_client(struct i2c_client *client)
|
||||
i = lm78_read_value(client,LM78_REG_VID_FANDIV);
|
||||
data->vid = i & 0x0f;
|
||||
if (data->type == lm79)
|
||||
data->vid |= (lm78_read_value(client,LM78_REG_CHIPID) & 0x01) >> 4;
|
||||
data->vid |= (lm78_read_value(client,LM78_REG_CHIPID) & 0x01) << 4;
|
||||
else
|
||||
data->vid |= 0x10;
|
||||
data->fan_div[0] = (i >> 4) & 0x03;
|
||||
|
||||
@@ -985,7 +985,7 @@ void w83781d_init_client(struct i2c_client *client)
|
||||
w83781d_write_value(client,W83781D_REG_CONFIG,0x80);
|
||||
|
||||
vid = w83781d_read_value(client,W83781D_REG_VID_FANDIV) & 0x0f;
|
||||
vid |= (w83781d_read_value(client,W83781D_REG_CHIPID) & 0x01) >> 4;
|
||||
vid |= (w83781d_read_value(client,W83781D_REG_CHIPID) & 0x01) << 4;
|
||||
vid = VID_FROM_REG(vid);
|
||||
|
||||
w83781d_write_value(client,W83781D_REG_IN_MIN(0),
|
||||
|
||||
Reference in new issue
Block a user