Skip to content

Commit 3a3cc54

Browse files
raagjadavrafaeljw
authored andcommitted
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>
1 parent 2d5bd3c commit 3a3cc54

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/acpi/utils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,7 @@ static int acpi_dev_match_cb(struct device *dev, const void *data)
886886
if (acpi_match_device_ids(adev, match->hid))
887887
return 0;
888888

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

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

0 commit comments

Comments
 (0)