summaryrefslogtreecommitdiff
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-05-10 05:08:09 +0300
committerShawn Guo <shawnguo@kernel.org>2018-05-14 17:08:08 +0300
commit5630b1bd76d340e0c0986c37dfcac3c231436aa9 (patch)
treedbfb89eca57f7f36d2f4a9d3e4ed99b670b1dd0c /arch/arm/boot
parent51a739a6358bc1dc52780b6686ac0a48a43cf319 (diff)
downloadlinux-5630b1bd76d340e0c0986c37dfcac3c231436aa9.tar.xz
ARM: dts: imx6q-gk802: Do not hardcode input codes
Instead of hardcoding the input codes we can use the symbol name for better readability. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/imx6q-gk802.dts3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx6q-gk802.dts b/arch/arm/boot/dts/imx6q-gk802.dts
index 0be375611382..84d3540b3a97 100644
--- a/arch/arm/boot/dts/imx6q-gk802.dts
+++ b/arch/arm/boot/dts/imx6q-gk802.dts
@@ -8,6 +8,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
#include "imx6q.dtsi"
/ {
@@ -43,7 +44,7 @@
recovery-button {
label = "recovery";
gpios = <&gpio3 16 1>;
- linux,code = <0x198>; /* KEY_RESTART */
+ linux,code = <KEY_RESTART>;
wakeup-source;
};
};