From: Fabio Estevam Date: Thu, 10 May 2018 02:08:09 +0000 (-0300) Subject: ARM: dts: imx6q-gk802: Do not hardcode input codes X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5630b1bd76d340e0c0986c37dfcac3c231436aa9;p=linux.git 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 Signed-off-by: Shawn Guo --- diff --git a/arch/arm/boot/dts/imx6q-gk802.dts b/arch/arm/boot/dts/imx6q-gk802.dts index 0be375611382d..84d3540b3a97f 100644 --- a/arch/arm/boot/dts/imx6q-gk802.dts +++ b/arch/arm/boot/dts/imx6q-gk802.dts @@ -8,6 +8,7 @@ /dts-v1/; #include +#include #include "imx6q.dtsi" / { @@ -43,7 +44,7 @@ recovery-button { label = "recovery"; gpios = <&gpio3 16 1>; - linux,code = <0x198>; /* KEY_RESTART */ + linux,code = ; wakeup-source; }; };