git: 745067c58514 - main - LinuxKPI: Add acpi_video_backlight_use_native()

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Sun, 24 Dec 2023 08:23:14 UTC
The branch main has been updated by wulf:

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

commit 745067c58514c4323dc16697e19f59dd08a8e963
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2023-12-24 08:20:00 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2023-12-24 08:20:00 +0000

    LinuxKPI: Add acpi_video_backlight_use_native()
    
    We assume that backlight (in Linux term) is always "native".
    
    Also stub acpi_video_register_backlight()
    
    Sponsored by:   Serenity Cyber Security, LLC
    Reviewed by:    manu, bz
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D42814
---
 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 0682e4c5518e..fd2ffd6764d0 100644
--- a/sys/compat/linuxkpi/common/include/acpi/video.h
+++ b/sys/compat/linuxkpi/common/include/acpi/video.h
@@ -29,6 +29,7 @@
 #ifndef _LINUXKPI_ACPI_VIDEO_H_
 #define _LINUXKPI_ACPI_VIDEO_H_
 
+#include <sys/types.h>
 #include <sys/errno.h>
 
 #define	ACPI_VIDEO_CLASS	"video"
@@ -47,4 +48,15 @@ acpi_video_unregister(void)
 {
 }
 
+static inline void
+acpi_video_register_backlight(void)
+{
+}
+
+static inline bool
+acpi_video_backlight_use_native(void)
+{
+	return (true);
+}
+
 #endif	/* _LINUXKPI_ACPI_VIDEO_H_ */