diff options
author | Bob Moore <robert.moore@intel.com> | 2019-04-08 16:42:24 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-04-09 04:08:28 -0400 |
commit | 5599fb69355d7a558f32206dac7539e945a1f604 (patch) | |
tree | 25a12b1baa58d28dd812c61db36931eff04f6049 /drivers/acpi/acpica/nsinit.c | |
parent | a3ce7a8e0dd9baa5932c480b789ab54afa3ab116 (diff) |
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>
Diffstat (limited to 'drivers/acpi/acpica/nsinit.c')
-rw-r--r-- | drivers/acpi/acpica/nsinit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/nsinit.c b/drivers/acpi/acpica/nsinit.c index 19fb8dda870f..53e5d00d3a5e 100644 --- a/drivers/acpi/acpica/nsinit.c +++ b/drivers/acpi/acpica/nsinit.c | |||
@@ -478,7 +478,7 @@ acpi_ns_find_ini_methods(acpi_handle obj_handle, | |||
478 | 478 | ||
479 | /* We are only looking for methods named _INI */ | 479 | /* We are only looking for methods named _INI */ |
480 | 480 | ||
481 | if (!ACPI_COMPARE_NAME(node->name.ascii, METHOD_NAME__INI)) { | 481 | if (!ACPI_COMPARE_NAMESEG(node->name.ascii, METHOD_NAME__INI)) { |
482 | return (AE_OK); | 482 | return (AE_OK); |
483 | } | 483 | } |
484 | 484 | ||
@@ -641,7 +641,7 @@ acpi_ns_init_one_device(acpi_handle obj_handle, | |||
641 | * Note: We know there is an _INI within this subtree, but it may not be | 641 | * Note: We know there is an _INI within this subtree, but it may not be |
642 | * under this particular device, it may be lower in the branch. | 642 | * under this particular device, it may be lower in the branch. |
643 | */ | 643 | */ |
644 | if (!ACPI_COMPARE_NAME(device_node->name.ascii, "_SB_") || | 644 | if (!ACPI_COMPARE_NAMESEG(device_node->name.ascii, "_SB_") || |
645 | device_node->parent != acpi_gbl_root_node) { | 645 | device_node->parent != acpi_gbl_root_node) { |
646 | ACPI_DEBUG_EXEC(acpi_ut_display_init_pathname | 646 | ACPI_DEBUG_EXEC(acpi_ut_display_init_pathname |
647 | (ACPI_TYPE_METHOD, device_node, | 647 | (ACPI_TYPE_METHOD, device_node, |