From: Pali Rohár Date: Sun, 21 Feb 2016 11:06:48 +0000 (+0100) Subject: ARM: dts: n900: Use linux input defines instead hardcoded constants X-Git-Tag: v5.15~13978^2~19^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97d7f2ff38f54896ff38e468bd2b77c8a5a38761;p=platform%2Fkernel%2Flinux-starfive.git ARM: dts: n900: Use linux input defines instead hardcoded constants This makes DTS structure more readable. Signed-off-by: Pali Rohár Acked-By: Sebastian Reichel Acked-by: Pavel Machek Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 74d8f7eb..e2a629f 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -65,45 +65,45 @@ 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 = ; + linux,code = ; wakeup-source; }; camera_focus { label = "Camera Focus"; gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ - linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ + linux,code = ; wakeup-source; }; camera_capture { label = "Camera Capture"; gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ - linux,code = <0xd4>; /* KEY_CAMERA */ + linux,code = ; wakeup-source; }; lock_button { label = "Lock Button"; gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ - linux,code = <0x98>; /* KEY_SCREENLOCK */ + linux,code = ; 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 = ; + linux,code = ; 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 = ; + linux,code = ; }; };