summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-02-11 18:07:13 +0100
committerJason Cooper <jason@lakedaemon.net>2014-02-11 19:35:39 +0000
commit5c0169d1c503aab2d62ee6f6e342a78e2ea9e3ed (patch)
tree31d2582ebca9c33043d0ed674f8489c0f05b4682 /arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
parent29e74f8bd71e70f5fe97685ba2cdf12b78791883 (diff)
downloadlinux-next-5c0169d1c503aab2d62ee6f6e342a78e2ea9e3ed.tar.gz
ARM: mvebu: use input DT defines in Armada 370/XP boards
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>
Diffstat (limited to 'arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts')
-rw-r--r--arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
index 944acfb0827c..985948ce67b3 100644
--- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
+++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
@@ -12,6 +12,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
#include "armada-xp-mv78260.dtsi"
/ {
@@ -115,7 +116,7 @@
button@1 {
label = "Init Button";
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
};
};