diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2020-06-20 19:09:00 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-06-22 21:08:09 +0200 |
commit | 46157f1b70178634266f4f2fe41035ef0e3b0f6d (patch) | |
tree | 6f9166a67286ee7996fc33fe47d91d4f03a9ccac | |
parent | 37f1e3a8eda85c6dfa4dc1f0bd34ea16ad26208c (diff) | |
download | backports-46157f1b70178634266f4f2fe41035ef0e3b0f6d.tar.gz |
backports: Adapt acpi_evaluate_dsm()
The function signature of acpi_evaluate_dsm() changed in Linux
94116f8126de ("ACPI: Switch to use generic guid_t in
acpi_evaluate_dsm()"), add function to handle this new interface.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/acpi/acpi_bus.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backport/backport-include/acpi/acpi_bus.h b/backport/backport-include/acpi/acpi_bus.h new file mode 100644 index 00000000..4c7404a2 --- /dev/null +++ b/backport/backport-include/acpi/acpi_bus.h @@ -0,0 +1,15 @@ +#ifndef _BACKPORTS_ACPI_BUS_H__ +#define _BACKPORTS_ACPI_BUS_H__ 1 + +#include_next <acpi/acpi_bus.h> + +#if LINUX_VERSION_IN_RANGE(3,14,0, 4,13,0) +static inline union acpi_object * +backport_acpi_evaluate_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 func, union acpi_object *argv4) +{ + return acpi_evaluate_dsm(handle, guid->b, rev, func, argv4); +} +#define acpi_evaluate_dsm LINUX_BACKPORT(acpi_evaluate_dsm) +#endif /* 3.14 <= x < 4.13.0 */ + +#endif /* _BACKPORTS_ACPI_BUS_H__ */ |