Changeset 4455

Show
Ignore:
Timestamp:
06/18/07 14:17:05 (7 years ago)
Author:
khali
Message:

If VBAT monitoring is disabled, enable it. Original patch from an
anonymous contributor in ticket #2218.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/w83627ehf.c

    r4454 r4455  
    895895        } 
    896896 
     897        /* Enable VBAT monitoring if needed */ 
     898        tmp = w83627ehf_read_value(client, W83627EHF_REG_VBAT); 
     899        if (!(tmp & 0x01)) { 
     900                printk(KERN_INFO "w83627ehf: Enabling VBAT monitoring\n"); 
     901                w83627ehf_write_value(client, W83627EHF_REG_VBAT, tmp | 0x01); 
     902        } 
    897903} 
    898904