From 78d905354778746f221be6b8063b485974f7684f Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 29 Jun 2007 11:46:20 +0000 Subject: [PATCH] There are no sensor* sysfs files. The VID value is in cpu*_vid, not vid. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4520 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/access.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/access.c b/lib/access.c index a00347f5..1403c3e2 100644 --- a/lib/access.c +++ b/lib/access.c @@ -535,13 +535,17 @@ static struct feature_type_match fan_matches[] = { { 0 } }; +static struct feature_type_match cpu_matches[] = { + { "vid", SENSORS_FEATURE_VID }, + { 0 } +}; + static struct feature_type_match matches[] = { { "temp", SENSORS_FEATURE_TEMP, temp_matches }, { "in", SENSORS_FEATURE_IN, in_matches }, { "fan", SENSORS_FEATURE_FAN, fan_matches }, + { "cpu", SENSORS_FEATURE_UNKNOWN, cpu_matches }, { "vrm", SENSORS_FEATURE_VRM, 0 }, - { "vid", SENSORS_FEATURE_VID, 0 }, - { "sensor", SENSORS_FEATURE_TEMP_SENS, 0 }, { 0 } };