Map individual beep features. We had symbols for them for a long time,

I have no idea why they weren't mapped to the sysfs file names.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5843 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2010-06-21 09:02:30 +00:00
1 parent eaabfc8573
commit 60635dafc6
2 files changed
+5

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ lm-sensors CHANGES file
SVN HEAD
libsensors: Increase MAX_SENSORS_PER_TYPE to 24
Map individual beep features
sensord: Fix support of multiple chips (#2377)
sensors: Properly handle sensor input read errors
sensors-detect: Give udev time to settle before accessing i2c nodes
+4
View File
@@ -228,6 +228,7 @@ static const struct subfeature_type_match temp_matches[] = {
{ "fault", SENSORS_SUBFEATURE_TEMP_FAULT },
{ "type", SENSORS_SUBFEATURE_TEMP_TYPE },
{ "offset", SENSORS_SUBFEATURE_TEMP_OFFSET },
{ "beep", SENSORS_SUBFEATURE_TEMP_BEEP },
{ NULL, 0 }
};
@@ -238,6 +239,7 @@ static const struct subfeature_type_match in_matches[] = {
{ "alarm", SENSORS_SUBFEATURE_IN_ALARM },
{ "min_alarm", SENSORS_SUBFEATURE_IN_MIN_ALARM },
{ "max_alarm", SENSORS_SUBFEATURE_IN_MAX_ALARM },
{ "beep", SENSORS_SUBFEATURE_IN_BEEP },
{ NULL, 0 }
};
@@ -247,6 +249,7 @@ static const struct subfeature_type_match fan_matches[] = {
{ "div", SENSORS_SUBFEATURE_FAN_DIV },
{ "alarm", SENSORS_SUBFEATURE_FAN_ALARM },
{ "fault", SENSORS_SUBFEATURE_FAN_FAULT },
{ "beep", SENSORS_SUBFEATURE_FAN_BEEP },
{ NULL, 0 }
};
@@ -273,6 +276,7 @@ static const struct subfeature_type_match curr_matches[] = {
{ "alarm", SENSORS_SUBFEATURE_CURR_ALARM },
{ "min_alarm", SENSORS_SUBFEATURE_CURR_MIN_ALARM },
{ "max_alarm", SENSORS_SUBFEATURE_CURR_MAX_ALARM },
{ "beep", SENSORS_SUBFEATURE_CURR_BEEP },
{ NULL, 0 }
};