summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-11-02 13:00:19 +0000
committerJean Delvare <khali@linux-fr.org>2010-11-02 13:00:19 +0000
commit7f1c32dbd2d1e6d52846ee71c07f14d18c475ad0 (patch)
tree663b06cb3b10e7d3906fca19f9dff11e851ccb56 /lib
parent9b44cc28191c2dd5faea30eff5ffe018daa29708 (diff)
downloadlm-sensors-git-7f1c32dbd2d1e6d52846ee71c07f14d18c475ad0.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')
-rw-r--r--lib/sysfs.c3
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);