libsensors: Add support for temp[1-*]_min_hyst and temp[1-*]_lcrit_hyst

Add support for sysfs attributes temp[1-*]_min_hyst (already
implemented by drivers adt7x10, lm77 and lm92) and
temp[1-*]_lcrit_hyst (no known users yet.)
This commit is contained in:
Jean Delvare committed 2014-04-22 08:05:14 +00:00
1 parent eb5cf8b2ec
commit f09b1c6483
4 files changed
+8

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ lm-sensors CHANGES file
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
fancontrol: Deal with moving hwmon attributes
sensors-detect: Add detection of ADC128D818
Add detection of AMD family 16h Kabini and Mullins
+3
View File
@@ -9,6 +9,9 @@ given new feature.
0x440 lm-sensors 3.4.0
* Defined SENSORS_FEATURE_MAX
enum sensors_feature_type SENSORS_FEATURE_MAX
* Added support for temp min and temp critical min hysteresis
enum sensors_subfeature_type SENSORS_SUBFEATURE_TEMP_MIN_HYST
enum sensors_subfeature_type SENSORS_SUBFEATURE_TEMP_LCRIT_HYST
0x432 lm-sensors 3.3.2 to 3.3.5
* Added support for new sysfs attributes
+2
View File
@@ -190,6 +190,8 @@ typedef enum sensors_subfeature_type {
SENSORS_SUBFEATURE_TEMP_EMERGENCY_HYST,
SENSORS_SUBFEATURE_TEMP_LOWEST,
SENSORS_SUBFEATURE_TEMP_HIGHEST,
SENSORS_SUBFEATURE_TEMP_MIN_HYST,
SENSORS_SUBFEATURE_TEMP_LCRIT_HYST,
SENSORS_SUBFEATURE_TEMP_ALARM = (SENSORS_FEATURE_TEMP << 8) | 0x80,
SENSORS_SUBFEATURE_TEMP_MAX_ALARM,
SENSORS_SUBFEATURE_TEMP_MIN_ALARM,
+2
View File
@@ -214,9 +214,11 @@ static const struct subfeature_type_match temp_matches[] = {
{ "max", SENSORS_SUBFEATURE_TEMP_MAX },
{ "max_hyst", SENSORS_SUBFEATURE_TEMP_MAX_HYST },
{ "min", SENSORS_SUBFEATURE_TEMP_MIN },
{ "min_hyst", SENSORS_SUBFEATURE_TEMP_MIN_HYST },
{ "crit", SENSORS_SUBFEATURE_TEMP_CRIT },
{ "crit_hyst", SENSORS_SUBFEATURE_TEMP_CRIT_HYST },
{ "lcrit", SENSORS_SUBFEATURE_TEMP_LCRIT },
{ "lcrit_hyst", SENSORS_SUBFEATURE_TEMP_LCRIT_HYST },
{ "emergency", SENSORS_SUBFEATURE_TEMP_EMERGENCY },
{ "emergency_hyst", SENSORS_SUBFEATURE_TEMP_EMERGENCY_HYST },
{ "lowest", SENSORS_SUBFEATURE_TEMP_LOWEST },