mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
w83627hf: Enable VBAT monitoring (#2282, 2.6 backport).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5121 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ca3f53c26d
commit
a0a1eb9aab
2 files changed
+6
No files matched your search
@@ -987,6 +987,11 @@ static void w83627hf_init_client(struct i2c_client *client)
|
||||
(w83627hf_read_value(client,
|
||||
W83781D_REG_CONFIG) & 0xf7)
|
||||
| 0x01);
|
||||
|
||||
/* Enable VBAT monitoring if needed */
|
||||
tmp = w83627hf_read_value(client, W83781D_REG_VBAT);
|
||||
if (!(tmp & 0x01))
|
||||
w83627hf_write_value(client, W83781D_REG_VBAT, tmp | 0x01);
|
||||
}
|
||||
|
||||
static void w83627hf_update_client(struct i2c_client *client)
|
||||
|
||||
Reference in new issue
Block a user