Changeset 3134

Show
Ignore:
Timestamp:
10/29/05 19:17:48 (8 years ago)
Author:
khali
Message:

Save 0.5kB of lookup table data. This is a backport from Linux
2.6, original patch from Denis Vlasenko.
Drop useless check in detection function.

Files:
1 modified

Legend:

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

    r3008 r3134  
    208208// we'll just use linear interpolation for 10-bit readings.)  So, tempLUT  
    209209// is the temp at via register values 0-255: 
    210 static const long tempLUT[] = 
     210static const s16 tempLUT[] = 
    211211    { -709, -688, -667, -646, -627, -607, -589, -570, -553, -536, -519, 
    212212            -503, -487, -471, -456, -442, -428, -414, -400, -387, -375, 
     
    803803               addr = force_addr;      /* so detect will get called */ 
    804804 
    805        if (!addr) { 
    806                printk("via686a.o: No Via 686A sensors found.\n"); 
    807                return -ENODEV; 
    808        } 
    809805       normal_isa[0] = addr; 
    810806       s_bridge = dev;