Documentation: devicetree: Clean up gpio-keys example
Subsystems (3)
PATCH v2 1/1 Documentation: devicetree: Clean up gpio-keys example
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Rename sub-nodes to avoid new dtc unit address warnings when copied.
While at it, adopt the dashes convention for the node name.
---
v1 -> v2:
* Changed node name from underscore to dash
* Inserted white lines
* Renamed sub-nodes (Geert, Julien)
Documentation/devicetree/bindings/input/gpio-keys.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/input/gpio-keys.txt +5 -5
@@ -32,17 +32,17 @@ Optional subnode-properties: Example nodes: - gpio_keys { + gpio-keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; - button at 21 { + + up { label = "GPIO Key UP"; linux,code = <103>; gpios = <&gpio1 0 1>; }; - button at 22 { + + down { label = "GPIO Key DOWN"; linux,code = <108>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
Signature · 1 line
2.6.2
Hello Andreas,
Quoted 5 lines · Andreas F?rber
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Rename sub-nodes to avoid new dtc unit address warnings when copied.
Quoted 8 lines
While at it, adopt the dashes convention for the node name.
Reported-by Julien Chauveau <[email protected]>Cc Julien Chauveau <[email protected]>Cc Javier Martinez Canillas <[email protected]>Cc Geert Uytterhoeven <[email protected]>Signed-off-by Andreas F?rber <[email protected]>---
Patch looks good to me.
Best regards,
Javier
Julien Chauveau
Reviewed-byQuoted 20 lines
Le 16 mars 2016 ? 15:47, Javier Martinez Canillas <[email protected]> a ?crit :
Hello Andreas,
Quoted 5 lines · Andreas F?rber
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Rename sub-nodes to avoid new dtc unit address warnings when copied.
Quoted 8 lines
While at it, adopt the dashes convention for the node name.
Reported-by Julien Chauveau <[email protected]>Cc Julien Chauveau <[email protected]>Cc Javier Martinez Canillas <[email protected]>Cc Geert Uytterhoeven <[email protected]>Signed-off-by Andreas F?rber <[email protected]>---
Quoted 3 lines
Patch looks good to me.
Reviewed-by Javier Martinez Canillas <[email protected]>
I agree.
Quoted 20 lines · Julien Chauveau
Quoted 20 lines
Le 16 mars 2016 ? 15:47, Javier Martinez Canillas <[email protected]> a ?crit :
Hello Andreas,
Quoted 13 lines · Andreas F?rber
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Rename sub-nodes to avoid new dtc unit address warnings when copied.
While at it, adopt the dashes convention for the node name.
Reported-by Julien Chauveau <[email protected]>Cc Julien Chauveau <[email protected]>Cc Javier Martinez Canillas <[email protected]>Cc Geert Uytterhoeven <[email protected]>Signed-off-by Andreas F?rber <[email protected]>---
Quoted 7 lines
Quoted 3 lines
Patch looks good to me.
Reviewed-by Javier Martinez Canillas <[email protected]>I agree.
Reviewed-by Julien Chauveau <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry
Quoted 5 lines · Andreas F?rber
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Rename sub-nodes to avoid new dtc unit address warnings when copied.
Quoted 7 lines
While at it, adopt the dashes convention for the node name.
Reported-by Julien Chauveau <[email protected]>Cc Julien Chauveau <[email protected]>Cc Javier Martinez Canillas <[email protected]>Cc Geert Uytterhoeven <[email protected]>Signed-off-by Andreas F?rber <[email protected]>
Applied, thanks.
Rob
Quoted 39 lines
---
v1 -> v2:
* Changed node name from underscore to dash
* Inserted white lines
* Renamed sub-nodes (Geert, Julien)Documentation/devicetree/bindings/input/gpio-keys.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/input/gpio-keys.txt +5
-5@@ -32,17 +32,17 @@ Optional subnode-properties: Example nodes: - gpio_keys { + gpio-keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; autorepeat; - button at 21 { + + up { label = "GPIO Key UP"; linux,code = <103>; gpios = <&gpio1 0 1>; }; - button at 22 { + + down { label = "GPIO Key DOWN"; linux,code = <108>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;Signature · 1 line
2.6.2
Hello Rob,
Quoted 8 lines · Rob Herring
Quoted 7 lines · Andreas F?rber
Drop #address-cells and #size-cells, which are not required by the gpio-keys binding documentation, as button sub-nodes are not devices.
Rename sub-nodes to avoid new dtc unit address warnings when copied.
While at it, adopt the dashes convention for the node name.
Quoted 8 lines
Quoted 5 lines
Reported-by Julien Chauveau <[email protected]>Cc Julien Chauveau <[email protected]>Cc Javier Martinez Canillas <[email protected]>Cc Geert Uytterhoeven <[email protected]>Signed-off-by Andreas F?rber <[email protected]>Applied, thanks.
Dmitry already applied this patch in the input tree.
Quoted 2 lines
Rob
Best regards,
Javier