aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-08-09 09:38:13 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-09-07 15:09:06 +0000
commit5e477ea3b17542b55b2d94a45bbdd8ee33fded0f (patch)
tree7dfd58e90d44906f9efde0c138134cb759e7b883
parent9ecde173624c892a2b9aba2a1b4ca977b63fd513 (diff)
downloadsrc-5e477ea3b17542b55b2d94a45bbdd8ee33fded0f.tar.gz
src-5e477ea3b17542b55b2d94a45bbdd8ee33fded0f.zip
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)
-rw-r--r--sys/compat/linuxkpi/common/include/acpi/video.h12
1 files changed, 12 insertions, 0 deletions
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_ */