提交 9f0b4cc1 编写于 作者: Y Yipeng Zou 提交者: Bjorn Helgaas

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.comSigned-off-by: NYipeng Zou <zouyipeng@huawei.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 9abf2313
...@@ -67,7 +67,7 @@ static acpi_status acpi_match_rc(acpi_handle handle, u32 lvl, void *context, ...@@ -67,7 +67,7 @@ static acpi_status acpi_match_rc(acpi_handle handle, u32 lvl, void *context,
unsigned long long uid; unsigned long long uid;
acpi_status status; 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) if (ACPI_FAILURE(status) || uid != *segment)
return AE_CTRL_DEPTH; return AE_CTRL_DEPTH;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册