diff options
author | 2022-10-03 20:09:22 +0200 | |
---|---|---|
committer | 2022-10-03 20:09:22 +0200 | |
commit | 4aa497ca10a003153dd4b7af5f33d5f71a8f30d8 (patch) | |
tree | d51ab55c756fa6ad478d15014e9859311d1b9641 /include/linux/acpi.h | |
parent | Merge branches 'acpi-misc', 'acpi-tools' and 'acpi-docs' (diff) | |
parent | efi/dev-path-parser: Refactor _UID handling to use acpi_dev_uid_to_integer() (diff) | |
download | wireguard-linux-4aa497ca10a003153dd4b7af5f33d5f71a8f30d8.tar.xz wireguard-linux-4aa497ca10a003153dd4b7af5f33d5f71a8f30d8.zip |
Merge branch 'acpi-uid'
Merge ACPI _UID handling unification changes for 6.1-rc1:
- Introduce acpi_dev_uid_to_integer() to convert a _UID string into an
integer value (Andy Shevchenko).
- Use acpi_dev_uid_to_integer() in several places to unify _UID
handling (Andy Shevchenko).
* acpi-uid:
efi/dev-path-parser: Refactor _UID handling to use acpi_dev_uid_to_integer()
spi: pxa2xx: Refactor _UID handling to use acpi_dev_uid_to_integer()
perf: qcom_l2_pmu: Refactor _UID handling to use acpi_dev_uid_to_integer()
i2c: mlxbf: Refactor _UID handling to use acpi_dev_uid_to_integer()
i2c: amd-mp2-plat: Refactor _UID handling to use acpi_dev_uid_to_integer()
ACPI: x86: Refactor _UID handling to use acpi_dev_uid_to_integer()
ACPI: LPSS: Refactor _UID handling to use acpi_dev_uid_to_integer()
ACPI: utils: Add acpi_dev_uid_to_integer() helper to get _UID as integer
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 85a35f66d7e4..2f9193b8dfc1 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -802,6 +802,11 @@ acpi_dev_hid_uid_match(struct acpi_device *adev, const char *hid2, const char *u return false; } +static inline int acpi_dev_uid_to_integer(struct acpi_device *adev, u64 *integer) +{ + return -ENODEV; +} + static inline struct acpi_device * acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv) { |