ACPICA: Rename nameseg compare macro for clarity
ACPICA commit 92ec0935f27e217dff0b176fca02c2ec3d782bb5 ACPI_COMPARE_NAME changed to ACPI_COMPARE_NAMESEG This clarifies (1) this is a compare on 4-byte namesegs, not a generic compare. Improves understanding of the code. Link: https://github.com/acpica/acpica/commit/92ec0935 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:
@@ -230,7 +230,7 @@ acpi_get_table_header(char *signature,
|
||||
|
||||
for (i = 0, j = 0; i < acpi_gbl_root_table_list.current_table_count;
|
||||
i++) {
|
||||
if (!ACPI_COMPARE_NAME
|
||||
if (!ACPI_COMPARE_NAMESEG
|
||||
(&(acpi_gbl_root_table_list.tables[i].signature),
|
||||
signature)) {
|
||||
continue;
|
||||
@@ -323,7 +323,7 @@ acpi_get_table(char *signature,
|
||||
i++) {
|
||||
table_desc = &acpi_gbl_root_table_list.tables[i];
|
||||
|
||||
if (!ACPI_COMPARE_NAME(&table_desc->signature, signature)) {
|
||||
if (!ACPI_COMPARE_NAMESEG(&table_desc->signature, signature)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user