forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/acpi/acpica/tbxface.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: tbxface - ACPI table-oriented external interfaces
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -108,7 +108,7 @@
108108 /*
109109 * Get the root table (RSDT or XSDT) and extract all entries to the local
110110 * Root Table Array. This array contains the information of the RSDT/XSDT
111
- * in a common, more useable format.
111
+ * in a common, more usable format.
112112 */
113113 status = acpi_tb_parse_root_table(rsdp_address);
114114 return_ACPI_STATUS(status);
....@@ -169,7 +169,7 @@
169169 if (!acpi_gbl_enable_table_validation) {
170170 /*
171171 * Now it's safe to do full table validation. We can do deferred
172
- * table initilization here once the flag is set.
172
+ * table initialization here once the flag is set.
173173 */
174174 acpi_gbl_enable_table_validation = TRUE;
175175 for (i = 0; i < acpi_gbl_root_table_list.current_table_count;
....@@ -202,14 +202,14 @@
202202 *
203203 * PARAMETERS: signature - ACPI signature of needed table
204204 * instance - Which instance (for SSDTs)
205
- * out_table_header - The pointer to the table header to fill
205
+ * out_table_header - The pointer to the where the table header
206
+ * is returned
206207 *
207
- * RETURN: Status and pointer to mapped table header
208
+ * RETURN: Status and a copy of the table header
208209 *
209
- * DESCRIPTION: Finds an ACPI table header.
210
- *
211
- * NOTE: Caller is responsible in unmapping the header with
212
- * acpi_os_unmap_memory
210
+ * DESCRIPTION: Finds and returns an ACPI table header. Caller provides the
211
+ * memory where a copy of the header is to be returned
212
+ * (fixed length).
213213 *
214214 ******************************************************************************/
215215 acpi_status
....@@ -230,7 +230,7 @@
230230
231231 for (i = 0, j = 0; i < acpi_gbl_root_table_list.current_table_count;
232232 i++) {
233
- if (!ACPI_COMPARE_NAME
233
+ if (!ACPI_COMPARE_NAMESEG
234234 (&(acpi_gbl_root_table_list.tables[i].signature),
235235 signature)) {
236236 continue;
....@@ -323,7 +323,7 @@
323323 i++) {
324324 table_desc = &acpi_gbl_root_table_list.tables[i];
325325
326
- if (!ACPI_COMPARE_NAME(&table_desc->signature, signature)) {
326
+ if (!ACPI_COMPARE_NAMESEG(&table_desc->signature, signature)) {
327327 continue;
328328 }
329329