summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorRaag Jadav <raag.jadav@intel.com>2023-10-24 11:50:13 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-10-24 21:49:27 +0200
commita3a62ca256ab1d1ba771ee243ec4a8e8b7856f08 (patch)
treee342673d8749c3aadb42c8d67be7bb831ffa83cb /include/acpi
parentbb3dcf0ccf3248914233417fbc2bef0aa128f7eb (diff)
downloadlinux-stable-a3a62ca256ab1d1ba771ee243ec4a8e8b7856f08.tar.gz
linux-stable-a3a62ca256ab1d1ba771ee243ec4a8e8b7856f08.tar.bz2
linux-stable-a3a62ca256ab1d1ba771ee243ec4a8e8b7856f08.zip
ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
Introduce acpi_dev_uid_match() helper that matches the device with supplied _UID string. 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 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 254685085c82..d1fe6446ffe0 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -760,6 +760,7 @@ static inline bool acpi_device_can_poweroff(struct acpi_device *adev)
adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set);
}
+bool acpi_dev_uid_match(struct acpi_device *adev, const char *uid2);
bool acpi_dev_hid_uid_match(struct acpi_device *adev, const char *hid2, const char *uid2);
int acpi_dev_uid_to_integer(struct acpi_device *adev, u64 *integer);