summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/imx53-smd.dts
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-05-09 23:08:08 -0300
committerShawn Guo <shawnguo@kernel.org>2018-05-14 22:08:07 +0800
commit51a739a6358bc1dc52780b6686ac0a48a43cf319 (patch)
tree3f6ac648feca8e8d0656bb0e7a52fd4c035d3266 /arch/arm/boot/dts/imx53-smd.dts
parentaee54d32318780b2f73685a051358bf6e34f426a (diff)
downloadlinux-51a739a6358bc1dc52780b6686ac0a48a43cf319.tar.bz2
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 <fabio.estevam@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx53-smd.dts')
-rw-r--r--arch/arm/boot/dts/imx53-smd.dts5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/imx53-smd.dts b/arch/arm/boot/dts/imx53-smd.dts
index fd030128666c..705af5e84d26 100644
--- a/arch/arm/boot/dts/imx53-smd.dts
+++ b/arch/arm/boot/dts/imx53-smd.dts
@@ -11,6 +11,7 @@
*/
/dts-v1/;
+#include <dt-bindings/input/input.h>
#include "imx53.dtsi"
/ {
@@ -27,13 +28,13 @@
volume-up {
label = "Volume Up";
gpios = <&gpio2 14 0>;
- linux,code = <115>; /* KEY_VOLUMEUP */
+ linux,code = <KEY_VOLUMEUP>;
};
volume-down {
label = "Volume Down";
gpios = <&gpio2 15 0>;
- linux,code = <114>; /* KEY_VOLUMEDOWN */
+ linux,code = <KEY_VOLUMEDOWN>;
};
};
};