Changeset 4634

Show
Ignore:
Timestamp:
07/21/07 10:36:54 (1 year ago)
Author:
khali
Message:

Fix the writing of the temperature interrupt configuration.
The old code was working only by accident. Backport from Linux 2.6.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/kernel/chips/via686a.c

    r3134 r4634  
    569569 
    570570        /* Configure temp interrupt mode for continuous-interrupt operation */ 
     571        reg = via686a_read_value(client, VIA686A_REG_TEMP_MODE); 
    571572        via686a_write_value(client, VIA686A_REG_TEMP_MODE,  
    572                             via686a_read_value(client, VIA686A_REG_TEMP_MODE) & 
    573                             !(VIA686A_TEMP_MODE_MASK | VIA686A_TEMP_MODE_CONTINUOUS)); 
     573                            (reg & ~VIA686A_TEMP_MODE_MASK) 
     574                            | VIA686A_TEMP_MODE_CONTINUOUS); 
    574575} 
    575576