mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +00:00
Drop SENSORS_FEATURE_TEMP_OVER, SENSORS_FEATURE_TEMP_HIGH and
SENSORS_FEATURE_TEMP_LOW, they don't correspond to anything in the standard sysfs interface. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4427 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
6a7971c88c
commit
33a3d6fba2
3 files changed
-19
No files matched your search
@@ -515,11 +515,9 @@ struct feature_type_match
|
||||
};
|
||||
|
||||
static struct feature_type_match temp_matches[] = {
|
||||
{ "over", SENSORS_FEATURE_TEMP_OVER },
|
||||
{ "max", SENSORS_FEATURE_TEMP_MAX },
|
||||
{ "max_hyst", SENSORS_FEATURE_TEMP_MAX_HYST },
|
||||
{ "min", SENSORS_FEATURE_TEMP_MIN },
|
||||
{ "low", SENSORS_FEATURE_TEMP_LOW },
|
||||
{ "crit", SENSORS_FEATURE_TEMP_CRIT },
|
||||
{ "crit_hyst", SENSORS_FEATURE_TEMP_CRIT_HYST },
|
||||
{ "alarm", SENSORS_FEATURE_TEMP_ALARM },
|
||||
|
||||
@@ -166,12 +166,9 @@ typedef enum sensors_feature_type {
|
||||
SENSORS_FEATURE_FAN_DIV,
|
||||
|
||||
SENSORS_FEATURE_TEMP = 0x200,
|
||||
SENSORS_FEATURE_TEMP_OVER,
|
||||
SENSORS_FEATURE_TEMP_MAX,
|
||||
SENSORS_FEATURE_TEMP_MAX_HYST,
|
||||
SENSORS_FEATURE_TEMP_MIN,
|
||||
SENSORS_FEATURE_TEMP_HIGH,
|
||||
SENSORS_FEATURE_TEMP_LOW,
|
||||
SENSORS_FEATURE_TEMP_LIM,
|
||||
SENSORS_FEATURE_TEMP_CRIT,
|
||||
SENSORS_FEATURE_TEMP_CRIT_HYST,
|
||||
|
||||
@@ -154,20 +154,6 @@ static void print_generic_chip_temp(const sensors_chip_name *name,
|
||||
min = 0;
|
||||
type = MAXONLY;
|
||||
}
|
||||
} else if (TEMP_FEATURE(SENSORS_FEATURE_TEMP_LOW)) {
|
||||
min = TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_LOW);
|
||||
|
||||
if (TEMP_FEATURE(SENSORS_FEATURE_TEMP_HIGH)) {
|
||||
max = TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_HIGH);
|
||||
} else { /* TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_OVER) */
|
||||
max = TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_OVER);
|
||||
}
|
||||
|
||||
type = MINMAX;
|
||||
} else if (TEMP_FEATURE(SENSORS_FEATURE_TEMP_OVER)) {
|
||||
max = TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_OVER);
|
||||
min = 0;
|
||||
type = MAXONLY;
|
||||
} else {
|
||||
min = max = 0;
|
||||
type = SINGLE;
|
||||
|
||||
Reference in new issue
Block a user