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:
Jean Delvare committed 2008-02-09 10:01:12 +00:00
1 parent ca3f53c26d
commit a0a1eb9aab
2 files changed
+6

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ SVN-HEAD
Module gl518sm: Fix fan speed reading (2.6 backport)
Module gl520sm: Fix fan speed reading (2.6 backport)
Module lm90: Use generic i2c reads during detection (2.6 backport)
Module w83627hf: Enable VBAT monitoring (#2282, 2.6 backport)
Program decode-dimms.pl: Fix DDR2 SDRAM module speed decoding
Update manufacturer IDs.
Program decode-vaio.pl: Private data might not be readable by non-root users
+5
View File
@@ -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)