From 8e7ff0d742386ba023c0af13caa6ac975bddd1dd Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 24 Jun 2007 11:20:13 +0200 Subject: [PATCH] --- yaml --- r: 61813 b: refs/heads/master c: d3130f0e30745b406af233897a27834eb5285f45 h: refs/heads/master i: 61811: 5a88ca3739eaad1107122d46ceeee0dceb3b064e v: v3 --- [refs] | 2 +- trunk/drivers/hwmon/w83627ehf.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d69b3700be72..89bcaaf921d5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fc18d6c0479d5b6da281590a8caf166d60cc748b +refs/heads/master: d3130f0e30745b406af233897a27834eb5285f45 diff --git a/trunk/drivers/hwmon/w83627ehf.c b/trunk/drivers/hwmon/w83627ehf.c index a336793c1caf..e87fcf87a6e2 100644 --- a/trunk/drivers/hwmon/w83627ehf.c +++ b/trunk/drivers/hwmon/w83627ehf.c @@ -1205,6 +1205,11 @@ static inline void __devinit w83627ehf_init_device(struct w83627ehf_data *data) W83627EHF_REG_TEMP_CONFIG[i], tmp & 0xfe); } + + /* Enable VBAT monitoring if needed */ + tmp = w83627ehf_read_value(data, W83627EHF_REG_VBAT); + if (!(tmp & 0x01)) + w83627ehf_write_value(data, W83627EHF_REG_VBAT, tmp | 0x01); } static int __devinit w83627ehf_probe(struct platform_device *pdev)