diff options
author | Yipeng Zou <zouyipeng@huawei.com> | 2022-11-04 11:24:30 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-11-07 15:22:52 -0600 |
commit | 9f0b4cc174c3c5ceb9322d01372369610f327c42 (patch) | |
tree | c4ba1fe51adf385b107c165db4ad42f9979a6eff /drivers/pci/pci-acpi.c | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
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; |