apm821xx: dts: Unify naming of gpio-keys nodes
authorPetr Štetiar <ynezz@true.cz>
Sun, 30 Dec 2018 11:17:25 +0000 (12:17 +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 3b05d9c24e9047a3baf3add9ef7f66d93df1c020..39379de4d8633122e01af98a36f31c802d8dfdf4 100644 (file)
                };
        };
 
-       gpio_keys_polled {
+       keys {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                #size-cells = <0>;
index 80b82e4ff0f5448e38662b8e401015bd83ce2469..8f63170c837b49419873daddebe94b3a66f461e3 100644 (file)
                };
        };
 
-       gpio_keys_polled {
+       keys {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                #size-cells = <0>;
index a163b1d82d1c675946cd3fcdf3fa3d0dabde1860..0732f17b2189a48e11262ff4b24ff74ff665066c 100644 (file)
 };
 
 &POB0 {
-       gpio_keys_polled {
+       keys {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                #size-cells = <0>;
index 313de3fe3d03e1c6a9d94f6896a68cd05e02408c..19d56704dea52321f28f91154c804af26fc931c2 100644 (file)
 };
 
 &POB0 {
-       gpio_keys_polled {
+       keys {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                #size-cells = <0>;
index 9412f38d4a7b47bedbf1af70d43875f905b25a8e..4a83cbb11bcf23ee3cef9dca817c1acb3de8a20d 100644 (file)
                };
        };
 
-       gpio-keys-polled {
+       keys {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                #size-cells = <0>;