summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/utils.c
diff options
context:
space:
mode:
authorRaag Jadav <raag.jadav@intel.com>2023-11-23 15:36:13 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-12-06 18:02:37 +0100
commit57b8543ceee82ea72be1745a6dc3a9111d55a151 (patch)
treef9acdbd8578f36e70d7bb65fd4667a0efc509348 /drivers/acpi/utils.c
parent33cc938e65a98f1d29d0a18403dbbee050dcad9a (diff)
downloadlinux-stable-57b8543ceee82ea72be1745a6dc3a9111d55a151.tar.gz
linux-stable-57b8543ceee82ea72be1745a6dc3a9111d55a151.tar.bz2
linux-stable-57b8543ceee82ea72be1745a6dc3a9111d55a151.zip
ACPI: bus: update acpi_dev_uid_match() to support multiple types
According to the ACPI specification, a _UID object can evaluate to either a numeric value or a string. Update acpi_dev_uid_match() to support _UID matching for both integer and string types. Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Raag Jadav <raag.jadav@intel.com> [ rjw: Rename auxiliary macros, relocate kerneldoc comment ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/utils.c')
-rw-r--r--drivers/acpi/utils.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 28c75242fca9..fe7e850c6479 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -825,25 +825,6 @@ bool acpi_check_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 funcs)
EXPORT_SYMBOL(acpi_check_dsm);
/**
- * acpi_dev_uid_match - Match device by supplied UID
- * @adev: ACPI device to match.
- * @uid2: Unique ID of the device.
- *
- * Matches UID in @adev with given @uid2.
- *
- * Returns:
- * - %true if matches.
- * - %false otherwise.
- */
-bool acpi_dev_uid_match(struct acpi_device *adev, const char *uid2)
-{
- const char *uid1 = acpi_device_uid(adev);
-
- return uid1 && uid2 && !strcmp(uid1, uid2);
-}
-EXPORT_SYMBOL_GPL(acpi_dev_uid_match);
-
-/**
* acpi_dev_hid_uid_match - Match device by supplied HID and UID
* @adev: ACPI device to match.
* @hid2: Hardware ID of the device.