mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 21:35:07 +00:00
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>
This commit is contained in:
parent
2d5bd3cbb0
commit
3a3cc54605
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user