From nobody Thu Apr 24 22:14:36 2025 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 4Zk9Hx0rc8z5trhq; Thu, 24 Apr 2025 22:14:37 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zk9Hw4yzgz3ky4; Thu, 24 Apr 2025 22:14:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745532876; 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=mogExpUIFyLPW3KJZbvFCDYneMU0YFodAhd5S7p0e4c=; b=wTNB9R74Txrd2ivo7s73PYTZa1ytKVFLhwcPucbEA5ix4zMxFdzi1GuavPOIt1M0fpEPbc 0Tk29dR0SsnQ8Wvc+x0Se/XSuDKQ2JrR3DcGAzy8j6GN1FDc9zSmLCpeIW1e6TeR01i0aE jrIbUSQw7ihG5FH9e0D551gwgfxkQIt3gDl3eHWSMrqMuk3K06aW3nDubX2fOtFJvAkijn 3lRqTORvigJ3lYK+7ZRTdirEJShLkWsFEA+DnKYOMgHWITS28F/o1+cANXUwl/Y9flswvZ YKqQeh1/IEhw/2WHBaSmikQQaqRvNMQpK11HBanQYVhDEWOykeJTnRzjykcr3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1745532876; a=rsa-sha256; cv=none; b=LLa+24iHcf8B+2JWsXonN1E7YLw52Pvqd6p2MQvps/5jfenTrVWYArxdbWmqRxmbLuS1os NK3hem3IlK4yKDCRye+DJ9u0otWsbk2EDTZr7PxWkd/Z+T+GhGka8XwJAx9w68TucTgphR Gppugi/LbtCCe43cS9tQg79sZXqn204MYV+1/niBkt/B94e9EqjxwGIEd+t6pRz+zVr5sj CmY37NIcD3/5I9wCNdm5zjUR7uoGmRywGsXrDUICOaVSoLfjksRkogjMTEzmwUnq7JpLl6 WOI/HfYpjCBxGfjW2dMDZMaLVR5W+CIv6Ix7G1+J405ZDszXUZsuv/rfFUURKA== 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=1745532876; 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=mogExpUIFyLPW3KJZbvFCDYneMU0YFodAhd5S7p0e4c=; b=EEM+cijREy5Kbcmj8ZHfV0QXoLkszNkbJh7LwxQPpUlew9KHqZs+7bvIkI+1FsVncYiAWy 19ITfRsK1VRlq3JT2evwvFVHCX46/NxUH+VfC91OSv10IyI1dutaRuOiKUv8sscEAJMqvV g/SlZ+86ePy4zPbRIEIu7TpDi3tugMF+bhg69GHX9UFNolkucHvZrtGoZwWRcQIfcJtTrI xccykTUY0gn/cVHqzw8GRR6g1FBNj4n1UCdsGd++UNQo8bvDKJGOKrlPNyXTI+mdF9NIcq 6rupYM0TRNkf/O50IztNWB6pxmBDWPx3toKz/iKTF+W6BN1vDGEfrB+O6EmORQ== 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 4Zk9Hw4Hy8z17Rw; Thu, 24 Apr 2025 22:14:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 53OMEawQ036588; Thu, 24 Apr 2025 22:14:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53OMEaMX036585; Thu, 24 Apr 2025 22:14:36 GMT (envelope-from git) Date: Thu, 24 Apr 2025 22:14:36 GMT Message-Id: <202504242214.53OMEaMX036585@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 69880fede78f - main - LinuxKPI: extend struct and enum for leds 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 69880fede78fc769ad417e5a984fb9fee7815d8b Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=69880fede78fc769ad417e5a984fb9fee7815d8b commit 69880fede78fc769ad417e5a984fb9fee7815d8b Author: Bjoern A. Zeeb AuthorDate: 2025-04-24 10:43:44 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-04-24 22:13:54 +0000 LinuxKPI: extend struct and enum for leds An updated rtw88 driver requires minimal changes to leds.h. On the positive side we can now remove the __DUMMY from the enum as we actually have a valid field name. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D50002 --- sys/compat/linuxkpi/common/include/linux/leds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/leds.h b/sys/compat/linuxkpi/common/include/linux/leds.h index f7ee7a68dcf5..89f7286f6800 100644 --- a/sys/compat/linuxkpi/common/include/linux/leds.h +++ b/sys/compat/linuxkpi/common/include/linux/leds.h @@ -27,7 +27,7 @@ #define _LINUXKPI_LINUX_LEDS_H enum led_brightness { - __DUMMY, + LED_OFF, }; struct led_classdev { @@ -35,6 +35,7 @@ struct led_classdev { const char *default_trigger; int (*blink_set)(struct led_classdev *, unsigned long *, unsigned long *); void (*brightness_set)(struct led_classdev *, enum led_brightness); + void (*led_set)(struct led_classdev *, enum led_brightness); }; #endif /* _LINUXKPI_LINUX_LEDS_H */