diff options
author | Yipeng Zou <zouyipeng@huawei.com> | 2022-11-04 04:24:30 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-11-07 22:22:52 +0100 |
commit | 9f0b4cc174c3c5ceb9322d01372369610f327c42 (patch) | |
tree | c4ba1fe51adf385b107c165db4ad42f9979a6eff /drivers/pci/pci-acpi.c | |
parent | Linux 6.1-rc1 (diff) | |
download | linux-9f0b4cc174c3c5ceb9322d01372369610f327c42.tar.xz linux-9f0b4cc174c3c5ceb9322d01372369610f327c42.zip |
PCI/ACPI: Use METHOD_NAME__UID instead of plain string
Replace the string "_UID" with the METHOD_NAME__UID macro so instances are
easier to find.
Link: https://lore.kernel.org/r/20221104032430.186424-1-zouyipeng@huawei.com
Signed-off-by: Yipeng Zou <zouyipeng@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r-- | drivers/pci/pci-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index a46fec776ad7..068d6745bf98 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c @@ -67,7 +67,7 @@ static acpi_status acpi_match_rc(acpi_handle handle, u32 lvl, void *context, unsigned long long uid; acpi_status status; - status = acpi_evaluate_integer(handle, "_UID", NULL, &uid); + status = acpi_evaluate_integer(handle, METHOD_NAME__UID, NULL, &uid); if (ACPI_FAILURE(status) || uid != *segment) return AE_CTRL_DEPTH; |