aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83627ehf.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-06-24 05:20:13 -0400
committerMark M. Hoffman <mhoffman@lightlink.com>2007-07-19 14:22:17 -0400
commitd3130f0e30745b406af233897a27834eb5285f45 (patch)
treea352bf5cbc9d1e6641f5fdcf8cd490278e0bc5d0 /drivers/hwmon/w83627ehf.c
parentfc18d6c0479d5b6da281590a8caf166d60cc748b (diff)
hwmon/w83627ehf: Enable VBAT monitoring
If VBAT monitoring is disabled, enable it. Original patch from an anonymous contributor on the lm-sensors trac system: http://lm-sensors.org/ticket/2218 Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/w83627ehf.c')
-rw-r--r--drivers/hwmon/w83627ehf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index a336793c1caf..e87fcf87a6e2 100644
--- a/drivers/hwmon/w83627ehf.c
+++ b/drivers/hwmon/w83627ehf.c
@@ -1205,6 +1205,11 @@ static inline void __devinit w83627ehf_init_device(struct w83627ehf_data *data)
1205 W83627EHF_REG_TEMP_CONFIG[i], 1205 W83627EHF_REG_TEMP_CONFIG[i],
1206 tmp & 0xfe); 1206 tmp & 0xfe);
1207 } 1207 }
1208
1209 /* Enable VBAT monitoring if needed */
1210 tmp = w83627ehf_read_value(data, W83627EHF_REG_VBAT);
1211 if (!(tmp & 0x01))
1212 w83627ehf_write_value(data, W83627EHF_REG_VBAT, tmp | 0x01);
1208} 1213}
1209 1214
1210static int __devinit w83627ehf_probe(struct platform_device *pdev) 1215static int __devinit w83627ehf_probe(struct platform_device *pdev)