projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9abf231
)
PCI/ACPI: Use METHOD_NAME__UID instead of plain string
author
Yipeng Zou
<zouyipeng@huawei.com>
Fri, 4 Nov 2022 03:24:30 +0000
(11:24 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Mon, 7 Nov 2022 21:22:52 +0000
(15:22 -0600)
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>
drivers/pci/pci-acpi.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-acpi.c
b/drivers/pci/pci-acpi.c
index a46fec776ad77b12220358ff2269b9214bd4c924..068d6745bf98cb5f8dc38b46c28dacfa26944a51 100644
(file)
--- 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;