Changeset 635

Show
Ignore:
Timestamp:
11/20/99 20:27:10 (14 years ago)
Author:
frodo
Message:

fan div error in adm driver correction

Strange, I thought I had committed this one a few days ago...

Files:
1 modified

Legend:

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

    r617 r635  
    711711    if (*nrels_mag >= 2) { 
    712712      data->fan_div[1] = DIV_TO_REG(results[1]); 
    713       old = (old & 0xcf) | (data->fan_div[1] << 6); 
     713      old = (old & 0x3f) | (data->fan_div[1] << 6); 
    714714    } 
    715715    if (*nrels_mag >= 1) { 
    716716      data->fan_div[0] = DIV_TO_REG(results[0]); 
    717       old = (old & 0x3f) | (data->fan_div[0] << 4); 
     717      old = (old & 0xcf) | (data->fan_div[0] << 4); 
    718718      adm9240_write_value(client,ADM9240_REG_VID_FAN_DIV,old); 
    719719    }