aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <[email protected]>2016-03-31 13:08:06 -0700
committerDmitry Torokhov <[email protected]>2016-03-31 13:13:43 -0700
commit7d8d86252307ce34925c5ddec4ef1b32670353b9 (patch)
tree4c89d917309ba8f0a21dc11f73856747816189fe
parent8f7292ed88c0a87e4173c5a97fae444ed8b2f05b (diff)
Input: gpio-keys - clean up device tree binding 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. Reported-by: Julien Chauveau <[email protected]> Signed-off-by: Andreas Färber <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Reviewed-by: Julien Chauveau <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
-rw-r--r--Documentation/devicetree/bindings/input/gpio-keys.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/input/gpio-keys.txt b/Documentation/devicetree/bindings/input/gpio-keys.txt
index 21641236c095..a94940481e55 100644
--- a/Documentation/devicetree/bindings/input/gpio-keys.txt
+++ b/Documentation/devicetree/bindings/input/gpio-keys.txt
@@ -32,17 +32,17 @@ Optional subnode-properties:
Example nodes:
- gpio_keys {
+ gpio-keys {
compatible = "gpio-keys";
- #address-cells = <1>;
- #size-cells = <0>;
autorepeat;
- button@21 {
+
+ up {
label = "GPIO Key UP";
linux,code = <103>;
gpios = <&gpio1 0 1>;
};
- button@22 {
+
+ down {
label = "GPIO Key DOWN";
linux,code = <108>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;