git: 529f2534dac9 - stable/14 - LinuxKPI: Add acpi_video_backlight_use_native()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Feb 2024 21:33:08 UTC
The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=529f2534dac9b81ac67ec66893deb4017715beac commit 529f2534dac9b81ac67ec66893deb4017715beac Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2023-12-24 08:20:00 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2024-02-17 20:58:38 +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 (cherry picked from commit 745067c58514c4323dc16697e19f59dd08a8e963) --- 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_ */