diff options
author | Raag Jadav <raag.jadav@intel.com> | 2023-10-24 09:20:16 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-24 22:49:27 +0300 |
commit | 45f56711daa8e219f6bf5a18746b072e37c988d6 (patch) | |
tree | cde6222ee0aeaf28ba2a12259e39f346a6c40290 /drivers/acpi | |
parent | 3a3cc54605e4854b241ac3e2771b6f2a77aedd90 (diff) | |
download | linux-45f56711daa8e219f6bf5a18746b072e37c988d6.tar.xz |
ACPI: x86: 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>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/x86/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/x86/utils.c b/drivers/acpi/x86/utils.c index 63d834dd3811..bc65ebfcdf76 100644 --- a/drivers/acpi/x86/utils.c +++ b/drivers/acpi/x86/utils.c @@ -184,8 +184,7 @@ bool acpi_device_override_status(struct acpi_device *adev, unsigned long long *s if (acpi_match_device_ids(adev, override_status_ids[i].hid)) continue; - if (!adev->pnp.unique_id || - strcmp(adev->pnp.unique_id, override_status_ids[i].uid)) + if (!acpi_dev_uid_match(adev, override_status_ids[i].uid)) continue; } |