ARM: dts: n900: Use linux input defines instead hardcoded constants
authorPali Rohár <pali.rohar@gmail.com>
Sun, 21 Feb 2016 11:06:48 +0000 (12:06 +0100)
committerTony Lindgren <tony@atomide.com>
Mon, 22 Feb 2016 18:58:06 +0000 (10:58 -0800)
This makes DTS structure more readable.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-By: Sebastian Reichel <sre@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-n900.dts

index 74d8f7eb556399e489eaebc7e754a4515a96f57f..e2a629f06a0599ea3177d3cc44a930b5142e5ae9 100644 (file)
                camera_lens_cover {
                        label = "Camera Lens Cover";
                        gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
-                       linux,input-type = <5>; /* EV_SW */
-                       linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
+                       linux,input-type = <EV_SW>;
+                       linux,code = <SW_CAMERA_LENS_COVER>;
                        wakeup-source;
                };
 
                camera_focus {
                        label = "Camera Focus";
                        gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
-                       linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
+                       linux,code = <KEY_CAMERA_FOCUS>;
                        wakeup-source;
                };
 
                camera_capture {
                        label = "Camera Capture";
                        gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
-                       linux,code = <0xd4>; /* KEY_CAMERA */
+                       linux,code = <KEY_CAMERA>;
                        wakeup-source;
                };
 
                lock_button {
                        label = "Lock Button";
                        gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
-                       linux,code = <0x98>; /* KEY_SCREENLOCK */
+                       linux,code = <KEY_SCREENLOCK>;
                        wakeup-source;
                };
 
                keypad_slide {
                        label = "Keypad Slide";
                        gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
-                       linux,input-type = <5>; /* EV_SW */
-                       linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
+                       linux,input-type = <EV_SW>;
+                       linux,code = <SW_KEYPAD_SLIDE>;
                        wakeup-source;
                };
 
                proximity_sensor {
                        label = "Proximity Sensor";
                        gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
-                       linux,input-type = <5>; /* EV_SW */
-                       linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
+                       linux,input-type = <EV_SW>;
+                       linux,code = <SW_FRONT_PROXIMITY>;
                };
        };