ARM: mvebu: use input DT defines in Armada 370/XP boards
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 11 Feb 2014 17:07:13 +0000 (18:07 +0100)
committerJason Cooper <jason@lakedaemon.net>
Tue, 11 Feb 2014 19:35:39 +0000 (19:35 +0000)
Instead of harcoding keycodes specifications in the Armada 370/XP
boards, use the <dt-bindings/input/input.h> header file and its
keycode definitions.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-370-rd.dts
arch/arm/boot/dts/armada-xp-axpwifiap.dts
arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts

index c28865d..3e2c857 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
 #include "armada-370.dtsi"
 
                                #size-cells = <0>;
                                button@1 {
                                        label = "Software Button";
-                                       linux,code = <116>;
+                                       linux,code = <KEY_POWER>;
                                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                                };
                        };
index db1ef58..d83d7d6 100644 (file)
@@ -17,6 +17,7 @@
 
 /dts-v1/;
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 #include "armada-xp-mv78230.dtsi"
 
 / {
 
                button@1 {
                        label = "Factory Reset Button";
-                       linux,code = <141>; /* KEY_SETUP */
+                       linux,code = <KEY_SETUP>;
                        gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
        };
index 944acfb..985948c 100644 (file)
@@ -12,6 +12,7 @@
 
 /dts-v1/;
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 #include "armada-xp-mv78260.dtsi"
 
 / {
 
                                button@1 {
                                        label = "Init Button";
-                                       linux,code = <116>;
+                                       linux,code = <KEY_POWER>;
                                        gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
                                };
                        };