forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/utpredef.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: utpredef - support functions for predefined names
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -84,7 +84,7 @@
8484
8585 this_name = acpi_gbl_predefined_methods;
8686 while (this_name->info.name[0]) {
87
- if (ACPI_COMPARE_NAME(name, this_name->info.name)) {
87
+ if (ACPI_COMPARE_NAMESEG(name, this_name->info.name)) {
8888 return (this_name);
8989 }
9090
....@@ -151,7 +151,7 @@
151151
152152 static const char *ut_external_type_names[] = /* Indexed by ACPI_TYPE_* */
153153 {
154
- ", UNSUPPORTED-TYPE",
154
+ ", Type_ANY",
155155 ", Integer",
156156 ", String",
157157 ", Buffer",
....@@ -201,7 +201,7 @@
201201
202202 this_name = acpi_gbl_resource_names;
203203 while (this_name->info.name[0]) {
204
- if (ACPI_COMPARE_NAME(name, this_name->info.name)) {
204
+ if (ACPI_COMPARE_NAMESEG(name, this_name->info.name)) {
205205 return (this_name);
206206 }
207207
....@@ -311,8 +311,7 @@
311311 for (i = 0; i < arg_count; i++) {
312312 this_argument_type = METHOD_GET_NEXT_TYPE(argument_types);
313313
314
- if (!this_argument_type
315
- || (this_argument_type > METHOD_MAX_ARG_TYPE)) {
314
+ if (this_argument_type > METHOD_MAX_ARG_TYPE) {
316315 printf("**** Invalid argument type (%u) "
317316 "in predefined info structure\n",
318317 this_argument_type);