ACPICA: Rename nameseg copy macro for clarity
ACPICA commit 19c18d3157945d1b8b64a826f0a8e848b7dbb127 ACPI_MOVE_NAME changed to ACPI_COPY_NAMESEG This clarifies (1) this is a copy operation, and (2) it operates on ACPI name_segs. Improves understanding of the code. Link: https://github.com/acpica/acpica/commit/19c18d31 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
15ade5d2e7
commit
a3ce7a8e0d
@@ -286,7 +286,7 @@ static acpi_status osl_add_table_to_list(char *signature, u32 instance)
|
||||
return (AE_NO_MEMORY);
|
||||
}
|
||||
|
||||
ACPI_MOVE_NAME(new_info->signature, signature);
|
||||
ACPI_COPY_NAMESEG(new_info->signature, signature);
|
||||
|
||||
if (!gbl_table_list_head) {
|
||||
gbl_table_list_head = new_info;
|
||||
@@ -1174,7 +1174,7 @@ osl_table_name_from_file(char *filename, char *signature, u32 *instance)
|
||||
|
||||
/* Extract signature */
|
||||
|
||||
ACPI_MOVE_NAME(signature, filename);
|
||||
ACPI_COPY_NAMESEG(signature, filename);
|
||||
return (AE_OK);
|
||||
}
|
||||
|
||||
|
@@ -110,9 +110,9 @@ int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance)
|
||||
/* Construct lower-case filename from the table local signature */
|
||||
|
||||
if (ACPI_VALIDATE_RSDP_SIG(table->signature)) {
|
||||
ACPI_MOVE_NAME(filename, ACPI_RSDP_NAME);
|
||||
ACPI_COPY_NAMESEG(filename, ACPI_RSDP_NAME);
|
||||
} else {
|
||||
ACPI_MOVE_NAME(filename, table->signature);
|
||||
ACPI_COPY_NAMESEG(filename, table->signature);
|
||||
}
|
||||
|
||||
filename[0] = (char)tolower((int)filename[0]);
|
||||
|
Reference in New Issue
Block a user