ARM: dts: omap3-gta04: make use of input event include file and constants
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 31 Jul 2018 07:11:18 +0000 (09:11 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 7 Sep 2018 17:10:55 +0000 (10:10 -0700)
we can replace magic numbers by symbolic constants now.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-gta04.dtsi

index bb4c9ad..98f31f1 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "omap36xx.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
        model = "OMAP3 GTA04";
@@ -43,7 +44,7 @@
 
                aux-button {
                        label = "aux";
-                       linux,code = <169>;
+                       linux,code = <KEY_PHONE>;
                        gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
                        wakeup-source;
                };