summaryrefslogtreecommitdiff
path: root/drivers/acpi/utils.c
diff options
context:
space:
mode:
authorRaag Jadav <raag.jadav@intel.com>2023-10-24 11:50:15 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-10-24 21:49:27 +0200
commit3a3cc54605e4854b241ac3e2771b6f2a77aedd90 (patch)
treed239d182e436d6465a1882be1c64dc511e39e198 /drivers/acpi/utils.c
parent2d5bd3cbb0119d8626f706176a01ad9e59bfd89b (diff)
ACPI: utils: use acpi_dev_uid_match() for matching _UID
Convert manual _UID references to use the standard ACPI helper. Signed-off-by: Raag Jadav <raag.jadav@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/utils.c')
-rw-r--r--drivers/acpi/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 07ee0d23a188..558464c088bf 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -886,8 +886,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 (match->uid && !acpi_dev_uid_match(adev, match->uid))
return 0;
if (match->hrv == -1)