mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
If VBAT monitoring is disabled, enable it. Original patch from an
anonymous contributor in ticket #2218. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4455 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
2362e26b04
commit
750f943973
1 file changed
+6
@@ -894,6 +894,12 @@ static void w83627ehf_init_client(struct i2c_client *client)
|
||||
tmp & 0xfe);
|
||||
}
|
||||
|
||||
/* Enable VBAT monitoring if needed */
|
||||
tmp = w83627ehf_read_value(client, W83627EHF_REG_VBAT);
|
||||
if (!(tmp & 0x01)) {
|
||||
printk(KERN_INFO "w83627ehf: Enabling VBAT monitoring\n");
|
||||
w83627ehf_write_value(client, W83627EHF_REG_VBAT, tmp | 0x01);
|
||||
}
|
||||
}
|
||||
|
||||
static int w83627ehf_detect(struct i2c_adapter *adapter, int address,
|
||||
|
||||
Reference in new issue
Block a user