From nobody Sat Feb 17 21:33:08 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TchqT0DZ8z59lMj; Sat, 17 Feb 2024 21:33:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TchqS5lSHz4hcN; Sat, 17 Feb 2024 21:33:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0lc35mi+gpDcE7fAUeHelAfoZ/N3m79w3WiCtpx0jWQ=; b=w9R5HoOvfVK1aD9qbFmQ/Hk5EjpHU1eCfr2lUU3vHSZwRG14L4lp0wCqcHZN1mdsVvSVDN yeyRy9aK6y4Djn/e+ZhEqWsbAKF/iL3Socv7t0cVuJN7IkHJaPFsHoAIWZBniWyV2yVCH5 ql+S2Bqf1J1VWLxvy+hEliCVyvIY/5vnb6CveJfh8z8g18oU4KTp0XcQc70mIS9tki14fO Pvfd4hm++C/5fe0CDgSbjBFapN3SBvRmv0Nv0Rp3XBJFII6SHzFcwapSZT/rHrKuhE7W84 2SDIindxcbwp2nvzcaP7um5IsDTIxTkZR9YFC25f48YHzdfhbTmMQZSA7edm2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0lc35mi+gpDcE7fAUeHelAfoZ/N3m79w3WiCtpx0jWQ=; b=Y0Fj6/X78KNZ9QeyAv0LIbL3vLH3Aa/4b5ZpHi/8+xR4JnNh9T/RwYHUIvHSTg+gOiE8oj HmaqLIbZQue/BE6H5fUqo+vwTrQDjzO64lUQeXu6or2aOag6P6JbWIrX2OKxeiHED4ylSy Kh1/nbx8lRJW+PLVWxTOUpCoRGV/wNUD3/Rr9C21OgH8XlnW/tBjox0EresQPOdO+AHFgZ tkDuT8gpNTWVDM6AWHcDWWZz18kERkOp9Brb1LFPWn3j2hdluUTTwkoSPyR6VlV2SIz6KZ zVTyo7RmqbDRs3H/mxxnmnQJ4TwXqtGlunIV5g/Gdad6/OHMUU/VkRrOvSrdlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205588; a=rsa-sha256; cv=none; b=YwvhMbA5U2tMfNMUTkKaDMHHRrzMd2wuRDSi8lXVZ/ZnObssZ6zc4V3GHnEJZR/i8mxgEs eBhevVXxbHTMtHfgPe/aYUg2BWzlIvg+6BzPAYD9D5PLzHaTqKapuZNOt1Ep9bxy38EMBB HLXrscKIhsk6Vye7EHmzIUNgoPO041//zk/9mk1H5/iOGYxrgdd4LRUpWhB2gRO6wytvhe xgJj82+bZJ8p5bfq1JMr2BGCRBsNWBuVuJrnd3FJ06RSjbpMwh3S50teugYxyPXmphpQDB DtsOu1Z3N8pVXN4XqhzDsgKPqsplNty47b5fQf/SbxiDw3GSVpJvGSkUoq3SjA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TchqS4rvvzP8B; Sat, 17 Feb 2024 21:33:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLX8tu021135; Sat, 17 Feb 2024 21:33:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLX8pO021132; Sat, 17 Feb 2024 21:33:08 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:33:08 GMT Message-Id: <202402172133.41HLX8pO021132@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 529f2534dac9 - stable/14 - LinuxKPI: Add acpi_video_backlight_use_native() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 529f2534dac9b81ac67ec66893deb4017715beac Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=529f2534dac9b81ac67ec66893deb4017715beac commit 529f2534dac9b81ac67ec66893deb4017715beac Author: Vladimir Kondratyev AuthorDate: 2023-12-24 08:20:00 +0000 Commit: Vladimir Kondratyev 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 #include #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_ */