Changeset 2659

Show
Ignore:
Timestamp:
08/13/04 00:21:25 (9 years ago)
Author:
mmh
Message:

bugfix: smart tach handling was not quite finished

Files:
1 modified

Legend:

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

    r2653 r2659  
    12121212 
    12131213                                /* insert the new mapping and write it out */ 
     1214                                data->sf_tach_to_pwm = lm93_read_byte(client, 
     1215                                        LM93_REG_SF_TACH_TO_PWM); 
    12141216                                data->sf_tach_to_pwm &= ~0x3 << nr * 2; 
    12151217                                data->sf_tach_to_pwm |= results[0] << nr * 2; 
     
    12181220 
    12191221                                /* insert the enable bit and write it out */ 
    1220                                 data->sfc2 &= ~1 << nr; 
    1221                                 data->sfc2 |= 1 << nr; 
     1222                                data->sfc2 = lm93_read_byte(client, 
     1223                                        LM93_REG_SFC2); 
     1224                                if (results[0]) 
     1225                                        data->sfc2 |= 1 << nr; 
     1226                                else 
     1227                                        data->sfc2 &= ~1 << nr; 
    12221228                                lm93_write_byte(client, LM93_REG_SFC2, 
    12231229                                        data->sfc2);