diff mbox series

[v2,15/32] ARM: dts: omap3-gta04: make use of input event include file and constants

Message ID 76a8aaa94434b0aa1becc82be8211e4e9849b73d.1533021093.git.hns@goldelico.com (mailing list archive)
State New, archived
Headers show
Series Device Tree Updates for GTA04 (A3/A4/A5 variants) | expand

Commit Message

H. Nikolaus Schaller July 31, 2018, 7:11 a.m. UTC
we can replace magic numbers by symbolic constants now.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index bb4c9ad62edb..98f31f1814d0 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -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;
 		};