apm821xx: dts: Unify naming of gpio-led nodes
authorPetr Štetiar <ynezz@true.cz>
Sun, 30 Dec 2018 11:42:53 +0000 (12:42 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 24 Jan 2019 14:53:03 +0000 (15:53 +0100)
In DTS Checklist[1] we're now demanding proper generic node names, as
the name of a node should reflect the function of the device and use
generic name for that[2]. Everybody seems to be copy&pasting from DTS
files available in the repository today, so let's unify that naming
there as well and provide proper examples.

1. https://openwrt.org/submitting-patches#dts_checklist
2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
target/linux/apm821xx/dts/meraki-mr24.dts
target/linux/apm821xx/dts/meraki-mx60.dts
target/linux/apm821xx/dts/netgear-wndap6x0.dtsi
target/linux/apm821xx/dts/netgear-wndr4700.dts
target/linux/apm821xx/dts/wd-mybooklive.dts

index 39379de4d8633122e01af98a36f31c802d8dfdf4..a66eba7efaedd7ac359eb0a7d67efffe61298ba0 100644 (file)
 };
 
 &POB0 {
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                status: power-green {
index 8f63170c837b49419873daddebe94b3a66f461e3..62a77a62c03e6d17e092aec7e1ecd0d1ba32c4f2 100644 (file)
 };
 
 &POB0 {
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                status: power-green {
index 0732f17b2189a48e11262ff4b24ff74ff665066c..04611aad1ecc3a1e941575cf8b072f2327ff00c4 100644 (file)
                };
        };
 
-       LEDS: gpio-leds {
+       LEDS: leds {
                compatible = "gpio-leds";
 
                status: power {
index 19d56704dea52321f28f91154c804af26fc931c2..3fbcfaebbc08bb6048265fc3d6544196f07a9874 100644 (file)
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                status: power-green {
                        label = "wndr4700:green:power";
index 4a83cbb11bcf23ee3cef9dca817c1acb3de8a20d..db27e1778d9c34f90c2bb97b0684d73817bc59dd 100644 (file)
@@ -86,7 +86,7 @@
                no-output;
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                failsafe: power-red {