[PATCH v1 4/8] ACPI: utils: use acpi_dev_uid_match() for matching _UID

From: Raag Jadav
Date: Fri Oct 20 2023 - 04:48:28 EST


Convert manual _UID references to use standard ACPI helpers.

Signed-off-by: Raag Jadav <raag.jadav@xxxxxxxxx>
---
drivers/acpi/utils.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 664b9890b625..e3ba835e6590 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -889,8 +889,7 @@ static int acpi_dev_match_cb(struct device *dev, const void *data)
if (acpi_match_device_ids(adev, match->hid))
return 0;

- if (match->uid && (!adev->pnp.unique_id ||
- strcmp(adev->pnp.unique_id, match->uid)))
+ if (!acpi_dev_uid_match(adev, match->uid))
return 0;

if (match->hrv == -1)
--
2.17.1