[openwrt/openwrt] ramips: mt7620a_tplink_archer-c5-v4: use LED_FUNCTION_WLAN_2GHZ and LED_FUNCTION_WLAN_5GHZ

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 29 12:11:56 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/362e7103c674cb9d3fe8f5c6a1a38414f7ba66b8

commit 362e7103c674cb9d3fe8f5c6a1a38414f7ba66b8
Author: Mieczyslaw Nalewaj <namiltd at yahoo.com>
AuthorDate: Mon Mar 18 11:07:35 2024 +0100

    ramips: mt7620a_tplink_archer-c5-v4: use LED_FUNCTION_WLAN_2GHZ and LED_FUNCTION_WLAN_5GHZ
    
    Use LED_FUNCTION_WLAN_2GHZ and LED_FUNCTION_WLAN_5GHZ instead function-enumerator
    
    Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
---
 target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts
index c02b341d09..fcebf87c3f 100644
--- a/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts
+++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c5-v4.dts
@@ -26,17 +26,15 @@
 		};
 
 		led-1 {
-			function = LED_FUNCTION_WLAN;
+			function = LED_FUNCTION_WLAN_2GHZ;
 			color = <LED_COLOR_ID_GREEN>;
-			function-enumerator = <2>;
 			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "phy1tpt";
 		};
 
 		led-2 {
-			function = LED_FUNCTION_WLAN;
+			function = LED_FUNCTION_WLAN_5GHZ;
 			color = <LED_COLOR_ID_GREEN>;
-			function-enumerator = <5>;
 			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "phy0tpt";
 		};




More information about the lede-commits mailing list