diff options
| author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-06-12 14:02:54 +0000 |
|---|---|---|
| committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-07-09 18:33:49 +0000 |
| commit | 6d5f5f730a42eb49240bf1a21a65f4c5f7fd2843 (patch) | |
| tree | decc57360720c081cac20d63c2eace2ee5c0cef6 | |
| parent | bac4760524a2a15ce75e35251f0c9cdf31732f3f (diff) | |
linuxkpi: Add `to_acpi_device_node()` and `ACPI_COMPANION()`
The former is called by the latter. We return NULL because linuxkpi does
not implement ACPI (pseudo?) devices associated to regular devices.
The amdgpu DRM driver started to use `ACPI_COMPANION()` in Linux 6.13.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57577
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/acpi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/acpi.h b/sys/compat/linuxkpi/common/include/linux/acpi.h index a764a975c983..8b86fdfe9044 100644 --- a/sys/compat/linuxkpi/common/include/linux/acpi.h +++ b/sys/compat/linuxkpi/common/include/linux/acpi.h @@ -44,6 +44,14 @@ static inline void acpi_dev_put(struct acpi_device *adev) {} #define acpi_handle_debug(handle, fmt, ...) +static inline struct acpi_device * +to_acpi_device_node(const struct fwnode_handle *fwnode) +{ + return (NULL); +} + +#define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode) + #endif #endif /* _LINUXKPI_LINUX_ACPI_H_ */ |
