aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-08-09 09:38:13 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-08-18 07:47:07 +0000
commitafe53d7f7a9cf09c7443a979ac46f463c8f1cb17 (patch)
treea8b9b9f01323818be278e5ef87d220ef51f0cc83 /sys/compat/linuxkpi/common
parent76d93395c522e28cfa329ba57ca235929462412c (diff)
downloadsrc-afe53d7f7a9cf09c7443a979ac46f463c8f1cb17.tar.gz
src-afe53d7f7a9cf09c7443a979ac46f463c8f1cb17.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
Diffstat (limited to 'sys/compat/linuxkpi/common')
-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_ */