Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ef878b11ba245d14b7db7816217a825d6a894182
Commit:     ef878b11ba245d14b7db7816217a825d6a894182
Parent:     cbe311f2a40b8430d8e01b97c11e9e95d888430b
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 3 22:54:13 2008 +0100
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 20:39:45 2008 -0500

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

diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c
index 181f4e8..185ae1b 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)
                            (w83627hf_read_value(data,
                                                W83781D_REG_CONFIG) & 0xf7)
                            | 0x01);
+
+       /* Enable VBAT monitoring if needed */
+       tmp = w83627hf_read_value(data, W83781D_REG_VBAT);
+       if (!(tmp & 0x01))
+               w83627hf_write_value(data, W83781D_REG_VBAT, tmp | 0x01);
 }
 
 static void w83627hf_update_fan_div(struct w83627hf_data *data)
-
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