From 7f1c32dbd2d1e6d52846ee71c07f14d18c475ad0 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 2 Nov 2010 13:00:19 +0000 Subject: [PATCH] Some features are never scaled. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5876 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);