Changeset 3152

Show
Ignore:
Timestamp:
10/30/05 11:34:16 (8 years ago)
Author:
khali
Message:

Using s8 instead of u8 to store temperature register values saves
a few instructions (backport from Linux 2.6).

Files:
1 modified

Legend:

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

    r2867 r3152  
    7777 */ 
    7878 
    79 #define TEMP_FROM_REG(val)      (val & 0x80 ? val-0x100 : val) 
     79#define TEMP_FROM_REG(val)      (val) 
    8080 
    8181/* 
     
    117117 
    118118        /* registers values */ 
    119         u8 temp, temp_over; 
     119        s8 temp, temp_over; 
    120120}; 
    121121