mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
sensors: Add support for temp[1-*]_min_hyst and temp[1-*]_lcrit_hyst
This commit is contained in:
1 parent
f09b1c6483
commit
69b3b10fa6
2 files changed
+13
-2
No files matched your search
@@ -5,6 +5,7 @@ SVN HEAD
|
||||
sensors.conf.default: Add support for NCT6779 and NCT6791
|
||||
libsensors: Get rid of arbitrary limit on per-type sensor count
|
||||
Add support for temperature min and critical min hysteresis
|
||||
sensors: Add support for temperature min and critical min hysteresis
|
||||
fancontrol: Deal with moving hwmon attributes
|
||||
sensors-detect: Add detection of ADC128D818
|
||||
Add detection of AMD family 16h Kabini and Mullins
|
||||
|
||||
+12
-2
@@ -237,6 +237,16 @@ static void get_sensor_limit_data(const sensors_chip_name *name,
|
||||
}
|
||||
}
|
||||
|
||||
static const struct sensor_subfeature_list temp_min_sensors[] = {
|
||||
{ SENSORS_SUBFEATURE_TEMP_MIN_HYST, NULL, 0, hyst_str },
|
||||
{ -1, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static const struct sensor_subfeature_list temp_lcrit_sensors[] = {
|
||||
{ SENSORS_SUBFEATURE_TEMP_LCRIT_HYST, NULL, 0, hyst_str },
|
||||
{ -1, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static const struct sensor_subfeature_list temp_max_sensors[] = {
|
||||
{ SENSORS_SUBFEATURE_TEMP_MAX_HYST, NULL, 0, hyst_str },
|
||||
{ -1, NULL, 0, NULL }
|
||||
@@ -260,9 +270,9 @@ static const struct sensor_subfeature_list temp_sensors[] = {
|
||||
{ SENSORS_SUBFEATURE_TEMP_MAX_ALARM, NULL, 1, "HIGH" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_CRIT_ALARM, NULL, 1, "CRIT" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_EMERGENCY_ALARM, NULL, 1, "EMERGENCY" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_MIN, NULL, 0, "low" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_MIN, temp_min_sensors, 0, "low" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_MAX, temp_max_sensors, 0, "high" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_LCRIT, NULL, 0, "crit low" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_LCRIT, temp_lcrit_sensors, 0, "crit low" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_CRIT, temp_crit_sensors, 0, "crit" },
|
||||
{ SENSORS_SUBFEATURE_TEMP_EMERGENCY, temp_emergency_sensors, 0,
|
||||
"emerg" },
|
||||
|
||||
Reference in new issue
Block a user