[openwrt/openwrt] ipq40xx: fix dts error in LED color/function conversion

LEDE Commits lede-commits at lists.infradead.org
Thu Feb 8 16:45:18 PST 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c6ed34940d6231a7cfadaea5f1f3ee746d78e41a

commit c6ed34940d6231a7cfadaea5f1f3ee746d78e41a
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Fri Feb 9 01:44:19 2024 +0100

    ipq40xx: fix dts error in LED color/function conversion
    
    Fix DTS error in LED color/function conversion due to a bug in the
    conversion script.
    
    Fixes: a9e0d97e1fc8 ("ipq40xx: convert to new LED color/function format where possible")
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-mf18a.dts    | 1 -
 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-rt-ac42u.dts | 2 --
 2 files changed, 3 deletions(-)

diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-mf18a.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-mf18a.dts
index d965f2724d..6987515720 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-mf18a.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-mf18a.dts
@@ -50,7 +50,6 @@
 		};
 
 		led-2 {
-			function = LED_FUNCTION_WLAN;
 			function = LED_FUNCTION_WLAN;
 			color = <LED_COLOR_ID_BLUE>;
 			gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-rt-ac42u.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-rt-ac42u.dts
index 5604af2ddb..70849d71d6 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-rt-ac42u.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-rt-ac42u.dts
@@ -106,8 +106,6 @@
 			color = <LED_COLOR_ID_BLUE>;
 			function = LED_FUNCTION_STATUS;
 			gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
-			function = LED_FUNCTION_STATUS;
-			color = <LED_COLOR_ID_BLUE>;
 		};
 
 		led-1 {




More information about the lede-commits mailing list