Ticket #2218: w83627ehf.c.patch

File w83627ehf.c.patch, 429 bytes (added by ticket, 5 years ago)

Patch against w83627ehf.c in linux 2.6.21

  • w83627ehf.c

    old new  
    11841184                                              W83627EHF_REG_TEMP_CONFIG[i], 
    11851185                                              tmp & 0xfe); 
    11861186        } 
     1187 
     1188        /* Enable VBAT */ 
     1189        tmp = w83627ehf_read_value(client, 0x5d); 
     1190        if (!(tmp & 0x01)) 
     1191                w83627ehf_write_value(client, 0x5d, tmp | 0x01); 
    11871192} 
    11881193 
    11891194static int w83627ehf_detect(struct i2c_adapter *adapter)