Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2022 09:10:16 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: afe53d7f7a9c - main - linuxkpi: acpi/video.h: Add stubs acpi_video_{register,unregister}
Message-ID:  <202208180910.27I9AGhF020404@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=afe53d7f7a9cf09c7443a979ac46f463c8f1cb17

commit afe53d7f7a9cf09c7443a979ac46f463c8f1cb17
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-09 09:38:13 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-08-18 07:47:07 +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
---
 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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208180910.27I9AGhF020404>