summaryrefslogtreecommitdiff
path: root/lib/sysfs.c
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2010-11-02 13:00:19 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2010-11-02 13:00:19 +0000
commit01fdbb4848d942344949b8bfc0c0b2e73b5513ca (patch)
tree663b06cb3b10e7d3906fca19f9dff11e851ccb56 /lib/sysfs.c
parent8a664ff6b371992dff19041753d9900465895ab0 (diff)
downloadlm-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.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);