From nobody Sun Dec 24 08:23:14 2023 X-Original-To: dev-commits-src-main@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 4SyYvR1K0dz54HSm; Sun, 24 Dec 2023 08:23:15 +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 4SyYvQ5xmFz4Y3q; Sun, 24 Dec 2023 08:23:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703406194; 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=oXAIec9e0Kvg23szPBg2u7SRJsFHXmsTYCM+T7tmNNQ=; b=gXvkGjDIBx9QVprYz9CgXWjUk84vIkLQnARQWWWgSJsZNSt8f1Tkp+hJU9rWQO7iW/Y/Hk DQHfuXcPZPQ1X2HTpGZDZCAKSFhwteLb2O4VqN7CCaIYQwSAtpY4FwFDN+3xr2VJ6VxkIN HEgEe7mID9Va2BB0GJDB2ayii3vOGRL7GPndFV4sOkxdKL4gFsyFKXVprMAJwuMSm8k46u AmEhQbn10WkfiLJ8+l5yKg7b7u1nfZxuYv9+V1JDSJLRczohVY2/e75h2JRwSYv4bU2bub 8LiZw/Jd24nB8gRSKwpPTMjNKy9iwFDJ5Pe7ID9497FVi1Y/rD1lIJKMALQobw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703406194; a=rsa-sha256; cv=none; b=fL+lxCHaQcEUk2ZOFbWzIoOBUrcwu5hD8mYltx+Rr2nTL801FGCZYa3NxW5MWu44oIXjBi fo5gZUs+217pUAGyM6CwwEy6OTS30uDi0Q689HYeGkPyA5Yc1SsFoy3iBtBDExJo2JETU0 k0rzcJmIbUMJQngsgRftIeTgj9D6H4BYEO1rEouxoGYrULDaTbBsIAFc8nQ3JcKsmZkNf9 sbQzoeD3Awe5MVIWdNKc/84QT5yPrysHxAHAGzgJeZc2EtM+fsPhSqNXu3e08oxFrq8oqn 9JpZuO5yTNKTt1JxPoI8xy5eRnM+6tVQnfYi+GOVNW8P9Iepmw05zkmRwgud2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703406194; 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=oXAIec9e0Kvg23szPBg2u7SRJsFHXmsTYCM+T7tmNNQ=; b=BX1rNMKYSU3fqq3erAVplAv9cWfWjLpWl6G3GSNn8e9Cdbpfy3edEVZNpKJGyp23DkR0Si bLH9W7HOX8TFGCunHMY83k9Av5gqHvjIlSTeRuYd7jNA95pP3DWeRm2KLcP8ZcGA5JWOr+ GyxGcXXdTZ2ebQ3u6qVAJB9/WDoV/SR/lS7KJ9Ioua8nzbjt6lWOlyzSU6RcESSenJl92g UwkcJuLq1fBAB/CHAQEEVPzqQVCyWy7zZ0CHaizPPxa0LHZN8B0LpUd+6Y1gu8NYAXeFms HAEt6M0MmipT9EwbMtss7l5LQNYsH4L0cX7iyFPnwsrsCM5+9r67R+kgPfH9bQ== 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 4SyYvQ534Wz5kN; Sun, 24 Dec 2023 08:23:14 +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 3BO8NEZw087380; Sun, 24 Dec 2023 08:23:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BO8NEiv087377; Sun, 24 Dec 2023 08:23:14 GMT (envelope-from git) Date: Sun, 24 Dec 2023 08:23:14 GMT Message-Id: <202312240823.3BO8NEiv087377@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 745067c58514 - main - LinuxKPI: Add acpi_video_backlight_use_native() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 745067c58514c4323dc16697e19f59dd08a8e963 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=745067c58514c4323dc16697e19f59dd08a8e963 commit 745067c58514c4323dc16697e19f59dd08a8e963 Author: Vladimir Kondratyev AuthorDate: 2023-12-24 08:20:00 +0000 Commit: Vladimir Kondratyev 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 #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_ */