Changeset 2689

Show
Ignore:
Timestamp:
09/15/04 15:27:45 (9 years ago)
Author:
mmh
Message:

bugfixes:

  • VIDs were reading 10x too big - fixed integer magnitude
  • enabling smart tach for one fan sometimes disabled it for others -

fixed bit-twiddling during writes

Files:
1 modified

Legend:

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

    r2685 r2689  
    662662 
    663663        if (operation == SENSORS_PROC_REAL_INFO) 
    664                 *nrels_mag = 2; 
     664                *nrels_mag = 3; 
    665665        else if (operation == SENSORS_PROC_REAL_READ) { 
    666666                lm93_update_client(client); 
     
    13431343        /* insert the new mapping and write it out */ 
    13441344        data->sf_tach_to_pwm = lm93_read_byte(client, LM93_REG_SF_TACH_TO_PWM); 
    1345         data->sf_tach_to_pwm &= ~0x3 << fan * 2; 
     1345        data->sf_tach_to_pwm &= ~(0x3 << fan * 2); 
    13461346        data->sf_tach_to_pwm |= value << fan * 2; 
    13471347        lm93_write_byte(client, LM93_REG_SF_TACH_TO_PWM, data->sf_tach_to_pwm); 
     
    13521352                data->sfc2 |= 1 << fan; 
    13531353        else 
    1354                 data->sfc2 &= ~1 << fan; 
     1354                data->sfc2 &= ~(1 << fan); 
    13551355        lm93_write_byte(client, LM93_REG_SFC2, data->sfc2); 
    13561356}