Changeset 4751

Show
Ignore:
Timestamp:
09/04/07 17:59:33 (1 year ago)
Author:
khali
Message:

Fix the magnitude of temperature offsets in Linux 2.6.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r4749 r4751  
    1010           Fix adm1024 support for Linux 2.6 
    1111           Fix maxilife support for Linux 2.6 
     12           Fix magnitude of temperature offsets in Linux 2.6 
    1213  Makefile: Fix kernel version detection (#2187) 
    1314  Module fscher: Add missing read of control register (2.6 backport) 
  • lm-sensors/trunk/lib/proc.c

    r4750 r4751  
    291291                temp%d_crit -> temp%d_crit (for magnitude) 
    292292                temp%d_state -> temp%d_status 
     293                temp%d_offset -> temp%d_offset (for magnitude) 
    293294                temp%d -> temp%d_input 
    294295                sensor%d -> temp%d_type 
     
    415416                return 0; 
    416417        } 
     418        if(sscanf(name, "temp%d_offse%c%c", &num, &last, &check) == 2 && last == 't') { 
     419                sprintf(sysname, "temp%d_offset", num); 
     420                *sysmag = TEMPMAG; 
     421                return 0; 
     422        } 
    417423        if(sscanf(name, "temp%d%c", &num, &check) == 1) { 
    418424                sprintf(sysname, "temp%d_input", num);