From: Fabio Estevam Date: Thu, 10 May 2018 02:08:08 +0000 (-0300) Subject: ARM: dts: imx53-smd: Do not hardcode input codes X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=51a739a6358bc1dc52780b6686ac0a48a43cf319;p=linux.git ARM: dts: imx53-smd: 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/imx53-smd.dts b/arch/arm/boot/dts/imx53-smd.dts index fd030128666c7..705af5e84d267 100644 --- a/arch/arm/boot/dts/imx53-smd.dts +++ b/arch/arm/boot/dts/imx53-smd.dts @@ -11,6 +11,7 @@ */ /dts-v1/; +#include #include "imx53.dtsi" / { @@ -27,13 +28,13 @@ volume-up { label = "Volume Up"; gpios = <&gpio2 14 0>; - linux,code = <115>; /* KEY_VOLUMEUP */ + linux,code = ; }; volume-down { label = "Volume Down"; gpios = <&gpio2 15 0>; - linux,code = <114>; /* KEY_VOLUMEDOWN */ + linux,code = ; }; }; };