Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d3130f0e30745b406af233897a27834eb5285f45
Commit:     d3130f0e30745b406af233897a27834eb5285f45
Parent:     fc18d6c0479d5b6da281590a8caf166d60cc748b
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Sun Jun 24 11:20:13 2007 +0200
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Thu Jul 19 14:22:17 2007 -0400

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
---
 drivers/hwmon/w83627ehf.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index a336793..e87fcf8 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)
                                              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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to