[openwrt/openwrt] ramips: ER605v2 fix LED function definition

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 6 09:59:45 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/cffc52bb9adf8e84e4611c88c8ec4ff2d4111a0c

commit cffc52bb9adf8e84e4611c88c8ec4ff2d4111a0c
Author: Goetz Goerisch <ggoerisch at gmail.com>
AuthorDate: Sat Oct 5 08:56:43 2024 +0200

    ramips: ER605v2 fix LED function definition
    
    commit 665c2154ef122d10dfffeca95538ebdff82653b5
    added support for ER605v2
    
    All three LEDs where configured with LED_FUNCTION_STATUS
    which worked for 23.05 and kernel 5.15.
    
    With the upgrade to kernel 6.6 this leads to a name collision.
    
    Therefore the USB and Power LED now use the common.h function
    LED_FUNCTION_USB and LED_FUNCTION_POWER respectivly.
    
    * fixes https://github.com/openwrt/openwrt/issues/16596
    
    Link: https://github.com/openwrt/openwrt/pull/16606
    Signed-off-by: Goetz Goerisch <ggoerisch at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16606
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/ramips/dts/mt7621_tplink_er605-v2.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts b/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts
index 28c8e8b083..3d92e343f1 100644
--- a/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts
+++ b/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts
@@ -30,13 +30,13 @@
 
 		led_usb: usb {
 			color = <LED_COLOR_ID_GREEN>;
-			function = LED_FUNCTION_STATUS;
+			function = LED_FUNCTION_USB;
 			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
 		};
 
 		led_power: power {
 			color = <LED_COLOR_ID_GREEN>;
-			function = LED_FUNCTION_STATUS;
+			function = LED_FUNCTION_POWER;
 			gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
 			default-state = "on";
 		};




More information about the lede-commits mailing list