mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +00:00
Add support for the standard beep_enable attribute (#2248).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4766 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3c53f5fa85
commit
29bea1e843
4 files changed
+37
-4
No files matched your search
@@ -562,6 +562,12 @@ sensors_feature_type sensors_feature_get_type(const char *name, int *nr)
|
||||
int i, count;
|
||||
const struct feature_subtype_match *submatches;
|
||||
|
||||
/* Special case */
|
||||
if (!strcmp(name, "beep_enable")) {
|
||||
*nr = 0;
|
||||
return SENSORS_FEATURE_BEEP_ENABLE;
|
||||
}
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(matches); i++)
|
||||
if ((count = sscanf(name, matches[i].name, nr, &c)))
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user