summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-06-21 09:02:30 +0000
committerJean Delvare <khali@linux-fr.org>2010-06-21 09:02:30 +0000
commit60635dafc6614f79c5a1b094894a3caad13505e7 (patch)
tree3c029b472dfe1cf80448882a54d3870c37ec8829 /lib
parenteaabfc8573dfeebe28fbdd1e8758df82473a7e3c (diff)
downloadlm-sensors-git-60635dafc6614f79c5a1b094894a3caad13505e7.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/sysfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c
index b13e21b1..af15d575 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -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 }
};