forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/acpi/acpica/tbprint.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: tbprint - Table output utilities
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -69,10 +69,10 @@
6969
7070 memcpy(out_header, header, sizeof(struct acpi_table_header));
7171
72
- acpi_tb_fix_string(out_header->signature, ACPI_NAME_SIZE);
72
+ acpi_tb_fix_string(out_header->signature, ACPI_NAMESEG_SIZE);
7373 acpi_tb_fix_string(out_header->oem_id, ACPI_OEM_ID_SIZE);
7474 acpi_tb_fix_string(out_header->oem_table_id, ACPI_OEM_TABLE_ID_SIZE);
75
- acpi_tb_fix_string(out_header->asl_compiler_id, ACPI_NAME_SIZE);
75
+ acpi_tb_fix_string(out_header->asl_compiler_id, ACPI_NAMESEG_SIZE);
7676 }
7777
7878 /*******************************************************************************
....@@ -94,7 +94,7 @@
9494 {
9595 struct acpi_table_header local_header;
9696
97
- if (ACPI_COMPARE_NAME(header->signature, ACPI_SIG_FACS)) {
97
+ if (ACPI_COMPARE_NAMESEG(header->signature, ACPI_SIG_FACS)) {
9898
9999 /* FACS only has signature and length fields */
100100
....@@ -158,8 +158,8 @@
158158 * They are the odd tables, have no standard ACPI header and no checksum
159159 */
160160
161
- if (ACPI_COMPARE_NAME(table->signature, ACPI_SIG_S3PT) ||
162
- ACPI_COMPARE_NAME(table->signature, ACPI_SIG_FACS)) {
161
+ if (ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_S3PT) ||
162
+ ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_FACS)) {
163163 return (AE_OK);
164164 }
165165