diff options
author | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2010-11-02 13:00:19 +0000 |
---|---|---|
committer | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2010-11-02 13:00:19 +0000 |
commit | 01fdbb4848d942344949b8bfc0c0b2e73b5513ca (patch) | |
tree | 663b06cb3b10e7d3906fca19f9dff11e851ccb56 /lib/sysfs.c | |
parent | 8a664ff6b371992dff19041753d9900465895ab0 (diff) | |
download | lm-sensors-01fdbb4848d942344949b8bfc0c0b2e73b5513ca.tar.gz |
Some features are never scaled.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5876 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/sysfs.c')
-rw-r--r-- | lib/sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c index 1e1f790b..d4403163 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -439,7 +439,8 @@ static int sensors_read_dynamic_chip(sensors_chip_features *chip, if (!all_subfeatures[i].name) sensors_fatal_error(__func__, "Out of memory"); - if (!(sftype & 0x80)) + /* Other and misc subfeatures are never scaled */ + if (sftype < SENSORS_SUBFEATURE_VID && !(sftype & 0x80)) all_subfeatures[i].flags |= SENSORS_COMPUTE_MAPPING; all_subfeatures[i].flags |= sensors_get_attr_mode(dev_path, name); |