Changeset 564

Show
Ignore:
Timestamp:
09/14/99 06:55:28 (15 years ago)
Author:
phil
Message:

(Phil) Some bug fixes. As far as I can tell, the THMC50 driver seems to
be working perfectly. Of course, some real-world users might find something
I didn't... BTW- I caught a minor bug which I thought was funny, and checked
lm75.c to see if it was there from the start... and it was! So, I managed to
catch a bug in lm75.c which might have resulted in bad temp_hyst readings
during that short period between setting new limits and the next valid update.

Location:
lm-sensors/trunk/kernel/chips
Files:
2 modified

Legend:

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

    r516 r564  
    379379    } 
    380380    if (*nrels_mag >= 2) { 
    381       data->temp_os = TEMP_TO_REG(results[1]); 
    382       lm75_write_value(client,LM75_REG_TEMP_HYST,data->temp_os); 
     381      data->temp_hyst = TEMP_TO_REG(results[1]); 
     382      lm75_write_value(client,LM75_REG_TEMP_HYST,data->temp_hyst); 
    383383    } 
    384384  } 
  • lm-sensors/trunk/kernel/chips/thmc50.c

    r562 r564  
    421421    } 
    422422    if (*nrels_mag >= 2) { 
    423       data->temp_os = TEMP_TO_REG(results[1]); 
    424       thmc50_write_value(client,THMC50_REG_TEMP_HYST,data->temp_os); 
     423      data->temp_hyst = TEMP_TO_REG(results[1]); 
     424      thmc50_write_value(client,THMC50_REG_TEMP_HYST,data->temp_hyst); 
    425425    } 
    426426  } 
     
    446446    } 
    447447    if (*nrels_mag >= 2) { 
    448       data->remote_temp_os = TEMP_TO_REG(results[1]); 
    449       thmc50_write_value(client,THMC50_REG_REMOTE_TEMP_HYST,data->remote_temp_os); 
     448      data->remote_temp_hyst = TEMP_TO_REG(results[1]); 
     449      thmc50_write_value(client,THMC50_REG_REMOTE_TEMP_HYST,data->remote_temp_hyst); 
    450450    } 
    451451  } 
     
    481481  } else if (operation == SENSORS_PROC_REAL_WRITE) { 
    482482    if (*nrels_mag >= 1) { 
    483       data->remote_temp_os = results[0]; 
     483      data->inter_mask = results[0]; 
    484484      thmc50_write_value(client,THMC50_REG_INTER_MASK,data->inter_mask); 
    485485    } 
     
    516516  } else if (operation == SENSORS_PROC_REAL_WRITE) { 
    517517    if (*nrels_mag >= 1) { 
    518       data->remote_temp_os = results[0]; 
     518      data->analog_out = results[0]; 
    519519      thmc50_write_value(client,THMC50_REG_ANALOG_OUT,data->analog_out); 
    520520    }