aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83627hf.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-01-03 16:54:13 -0500
committerMark M. Hoffman <mhoffman@lightlink.com>2008-02-07 20:39:45 -0500
commitef878b11ba245d14b7db7816217a825d6a894182 (patch)
tree57a6101f5a9b7ef5a731d3adfb5454bc9b30c989 /drivers/hwmon/w83627hf.c
parentcbe311f2a40b8430d8e01b97c11e9e95d888430b (diff)
hwmon: (w83627hf) Enable VBAT monitoring
If VBAT monitoring is disabled, enable it. Bug reported on the lm-sensors trac system: http://lm-sensors.org/ticket/2282 This is the exact same patch that was applied to the w83627ehf driver 6 months ago. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/w83627hf.c')
-rw-r--r--drivers/hwmon/w83627hf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c
index 181f4e8590b1..185ae1b8027d 100644
--- a/drivers/hwmon/w83627hf.c
+++ b/drivers/hwmon/w83627hf.c
@@ -1515,6 +1515,11 @@ static void __devinit w83627hf_init_device(struct platform_device *pdev)
1515 (w83627hf_read_value(data, 1515 (w83627hf_read_value(data,
1516 W83781D_REG_CONFIG) & 0xf7) 1516 W83781D_REG_CONFIG) & 0xf7)
1517 | 0x01); 1517 | 0x01);
1518
1519 /* Enable VBAT monitoring if needed */
1520 tmp = w83627hf_read_value(data, W83781D_REG_VBAT);
1521 if (!(tmp & 0x01))
1522 w83627hf_write_value(data, W83781D_REG_VBAT, tmp | 0x01);
1518} 1523}
1519 1524
1520static void w83627hf_update_fan_div(struct w83627hf_data *data) 1525static void w83627hf_update_fan_div(struct w83627hf_data *data)