aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMichal Simek2018-03-27 12:13:13 +0200
committerMichal Simek2018-04-09 12:14:48 +0200
commit9d928f0418b55a6796f737e5b166634e493a3413 (patch)
tree3f2ebe60ef1edaa51b7c07cc90d41dbfcadbcb57 /arch/arm
parent52af7e3e81b92911906e19294df16c77f17fdab6 (diff)
arm64: zynqmp: Use keycode from input/input.h
Instead of hardcoding numbers. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/dts/zynqmp-zcu102-revA.dts3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/dts/zynqmp-zcu102-revA.dts b/arch/arm/dts/zynqmp-zcu102-revA.dts
index efa94a14194..c04e37dc65f 100644
--- a/arch/arm/dts/zynqmp-zcu102-revA.dts
+++ b/arch/arm/dts/zynqmp-zcu102-revA.dts
@@ -11,6 +11,7 @@
#include "zynqmp.dtsi"
#include "zynqmp-clk-ccf.dtsi"
+#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
#include <dt-bindings/phy/phy.h>
@@ -51,7 +52,7 @@
sw19 {
label = "sw19";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
- linux,code = <108>; /* down */
+ linux,code = <KEY_DOWN>;
gpio-key,wakeup;
autorepeat;
};