mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: 19c18d31
Signed-off-by: Bob Moore <[email protected]>
Signed-off-by: Erik Schmauss <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
15ade5d2e7
commit
a3ce7a8e0d
7 changed files with 11 additions and 11 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue