Commit 5630b1bd authored by Fabio Estevam's avatar Fabio Estevam Committed by Shawn Guo

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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 51a739a6
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "imx6q.dtsi" #include "imx6q.dtsi"
/ { / {
...@@ -43,7 +44,7 @@ gpio-keys { ...@@ -43,7 +44,7 @@ gpio-keys {
recovery-button { recovery-button {
label = "recovery"; label = "recovery";
gpios = <&gpio3 16 1>; gpios = <&gpio3 16 1>;
linux,code = <0x198>; /* KEY_RESTART */ linux,code = <KEY_RESTART>;
wakeup-source; wakeup-source;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment