mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
Some features are never scaled.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5876 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
9b44cc2819
commit
7f1c32dbd2
1 file changed
+2
-1
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user