git: 5e477ea3b175 - stable/13 - linuxkpi: acpi/video.h: Add stubs acpi_video_{register,unregister}
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Sep 2022 15:10:39 UTC
The branch stable/13 has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=5e477ea3b17542b55b2d94a45bbdd8ee33fded0f
commit 5e477ea3b17542b55b2d94a45bbdd8ee33fded0f
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-09 09:38:13 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-09-07 15:09:06 +0000
linuxkpi: acpi/video.h: Add stubs acpi_video_{register,unregister}
Needed by i915.
Reviewed by: bz
Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36102
(cherry picked from commit afe53d7f7a9cf09c7443a979ac46f463c8f1cb17)
---
sys/compat/linuxkpi/common/include/acpi/video.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/acpi/video.h b/sys/compat/linuxkpi/common/include/acpi/video.h
index 63f876e78b57..df1844502ba8 100644
--- a/sys/compat/linuxkpi/common/include/acpi/video.h
+++ b/sys/compat/linuxkpi/common/include/acpi/video.h
@@ -35,4 +35,16 @@
#define ACPI_VIDEO_NOTIFY_PROBE 0x81
+static inline int
+acpi_video_register(void)
+{
+
+ return (-ENODEV);
+}
+
+static inline void
+acpi_video_unregister(void)
+{
+}
+
#endif /* _LINUXKPI_ACPI_VIDEO_H_ */