ARM: dts: imx6dl-plybas: Fix gpio-keys W=1 warnings
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx6dl-plybas: Fix gpio-keys W=1 warnings
Remove the unnecessary #address-cells/#size-cells and rename the node names to fix the following W=1 dtc warnings:
arch/arm/boot/dts/imx6dl-plybas.dts:26.13-30.5: Warning (unit_address_vs_reg): /gpio_keys/button@20: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:32.13-36.5: Warning (unit_address_vs_reg): /gpio_keys/button@21: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:20.12-37.4: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
--- arch/arm/boot/dts/imx6dl-plybas.dts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/imx6dl-plybas.dts +2 -4
@@ -19,17 +19,15 @@ chosen { gpio_keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; - button@20 { + start-button { label = "START"; linux,code = <31>; gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; }; - button@21 { + clean-button { label = "CLEAN"; linux,code = <46>; gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 8 lines · Fabio Estevam
Remove the unnecessary #address-cells/#size-cells and rename the node names to fix the following W=1 dtc warnings:
arch/arm/boot/dts/imx6dl-plybas.dts:26.13-30.5: Warning (
unit_address_vs_reg): /gpio_keys/button@20: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:32.13-36.5: Warning (unit_address_vs_reg): /gpio_keys/button@21: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:20.12-37.4: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" propertySigned-off-by Fabio Estevam <[email protected]>
Thank you!
Quoted 37 lines
--- arch/arm/boot/dts/imx6dl-plybas.dts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)arch/arm/boot/dts/imx6dl-plybas.dts +2
-4@@ -19,17 +19,15 @@ chosen { gpio_keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; - button@20 { + start-button { label = "START"; linux,code = <31>; gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; }; - button@21 { + clean-button { label = "CLEAN"; linux,code = <46>; gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 9 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Fabio Estevam
reviewerHi Shawn,
Quoted 5 lines · Oleksij Rempel
Quoted 3 lines · Fabio Estevam
Remove the unnecessary #address-cells/#size-cells and rename the node names to fix the following W=1 dtc warnings:
Quoted 7 lines
Quoted 5 lines
arch/arm/boot/dts/imx6dl-plybas.dts:26.13-30.5: Warning (
unit_address_vs_reg): /gpio_keys/button@20: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:32.13-36.5: Warning (unit_address_vs_reg): /gpio_keys/button@21: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:20.12-37.4: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" propertySigned-off-by Fabio Estevam <[email protected]>Reviewed-by Oleksij Rempel <[email protected]>
A gentle ping.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 17 lines · Fabio Estevam
Remove the unnecessary #address-cells/#size-cells and rename the node names to fix the following W=1 dtc warnings:
arch/arm/boot/dts/imx6dl-plybas.dts:26.13-30.5: Warning (
unit_address_vs_reg): /gpio_keys/button@20: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:32.13-36.5: Warning (unit_address_vs_reg): /gpio_keys/button@21: node has a unit name, but no reg or ranges property arch/arm/boot/dts/imx6dl-plybas.dts:20.12-37.4: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" propertySigned-off-by Fabio Estevam <[email protected]>--- arch/arm/boot/dts/imx6dl-plybas.dts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)arch/arm/boot/dts/imx6dl-plybas.dts +0
-0
arch/arm/boot/dts/imx6dl-plybas.dts chosen { · line 24
Quoted 9 lines
arch/arm/boot/dts/imx6dl-plybas.dts +1
-3@@ -19,17 +19,15 @@ chosen { gpio_keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; - button@20 { + start-button {
I prefer name style like button-xxx.
Shawn
Quoted 13 lines
arch/arm/boot/dts/imx6dl-plybas.dts +1
-1label = "START"; linux,code = <31>; gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; }; - button@21 { + clean-button { label = "CLEAN"; linux,code = <46>; gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;Signature · 1 line
2.25.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel