Show
Ignore:
Timestamp:
11/02/10 14:00:19 (4 years ago)
Author:
khali
Message:

Some features are never scaled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/lib/sysfs.c

    r5875 r5876  
    440440                        sensors_fatal_error(__func__, "Out of memory"); 
    441441 
    442                 if (!(sftype & 0x80)) 
     442                /* Other and misc subfeatures are never scaled */ 
     443                if (sftype < SENSORS_SUBFEATURE_VID && !(sftype & 0x80)) 
    443444                        all_subfeatures[i].flags |= SENSORS_COMPUTE_MAPPING; 
    444445                all_subfeatures[i].flags |= sensors_get_attr_mode(dev_path, name);