Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2025 11:42:08 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1eb45fe4c210 - stable/14 - LinuxKPI: extend struct and enum for leds
Message-ID:  <202504291142.53TBg8dm049066@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=1eb45fe4c210a6e0ce1c59e5c2615812641d2f49

commit 1eb45fe4c210a6e0ce1c59e5c2615812641d2f49
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-04-24 10:43:44 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-04-29 10:49:33 +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
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D50002
    
    (cherry picked from commit 69880fede78fc769ad417e5a984fb9fee7815d8b)
---
 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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504291142.53TBg8dm049066>