diff options
Diffstat (limited to 'drivers/acpi/utilities/uteval.c')
-rw-r--r-- | drivers/acpi/utilities/uteval.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/drivers/acpi/utilities/uteval.c b/drivers/acpi/utilities/uteval.c index 13d5879cd98b..a10120ad6982 100644 --- a/drivers/acpi/utilities/uteval.c +++ b/drivers/acpi/utilities/uteval.c | |||
@@ -59,7 +59,7 @@ acpi_ut_translate_one_cid(union acpi_operand_object *obj_desc, | |||
59 | /* | 59 | /* |
60 | * Strings supported by the _OSI predefined (internal) method. | 60 | * Strings supported by the _OSI predefined (internal) method. |
61 | */ | 61 | */ |
62 | static const char *acpi_interfaces_supported[] = { | 62 | static char *acpi_interfaces_supported[] = { |
63 | /* Operating System Vendor Strings */ | 63 | /* Operating System Vendor Strings */ |
64 | 64 | ||
65 | "Linux", | 65 | "Linux", |
@@ -158,6 +158,31 @@ acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state) | |||
158 | 158 | ||
159 | /******************************************************************************* | 159 | /******************************************************************************* |
160 | * | 160 | * |
161 | * FUNCTION: acpi_osi_invalidate | ||
162 | * | ||
163 | * PARAMETERS: interface_string | ||
164 | * | ||
165 | * RETURN: Status | ||
166 | * | ||
167 | * DESCRIPTION: invalidate string in pre-defiend _OSI string list | ||
168 | * | ||
169 | ******************************************************************************/ | ||
170 | |||
171 | acpi_status acpi_osi_invalidate(char *interface) | ||
172 | { | ||
173 | int i; | ||
174 | |||
175 | for (i = 0; i < ACPI_ARRAY_LENGTH(acpi_interfaces_supported); i++) { | ||
176 | if (!ACPI_STRCMP(interface, acpi_interfaces_supported[i])) { | ||
177 | *acpi_interfaces_supported[i] = '\0'; | ||
178 | return AE_OK; | ||
179 | } | ||
180 | } | ||
181 | return AE_NOT_FOUND; | ||
182 | } | ||
183 | |||
184 | /******************************************************************************* | ||
185 | * | ||
161 | * FUNCTION: acpi_ut_evaluate_object | 186 | * FUNCTION: acpi_ut_evaluate_object |
162 | * | 187 | * |
163 | * PARAMETERS: prefix_node - Starting node | 188 | * PARAMETERS: prefix_node - Starting node |