]> Git Repo - linux.git/commitdiff
ARM: dts: samsung: exynos4412-midas: use Linux event codes for input keys
authorRaymond Hackley <[email protected]>
Tue, 17 Oct 2023 10:18:14 +0000 (10:18 +0000)
committerKrzysztof Kozlowski <[email protected]>
Wed, 18 Oct 2023 06:22:23 +0000 (08:22 +0200)
Use event codes with linux-event-codes.h included for input keys on
midas.

Signed-off-by: Raymond Hackley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[krzysztof: drop header include, because it is already provided by
 dt-bindings/input/input.h]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
arch/arm/boot/dts/samsung/exynos4412-midas.dtsi

index 2a67fcc07041af21ff75894e29b564fb8b8c36b8..3d5aace668dc5a84f6be42ad87d9a3b244c21b00 100644 (file)
 
                key-down {
                        gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
-                       linux,code = <114>;
+                       linux,code = <KEY_VOLUMEDOWN>;
                        label = "volume down";
                        debounce-interval = <10>;
                };
 
                key-up {
                        gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
-                       linux,code = <115>;
+                       linux,code = <KEY_VOLUMEUP>;
                        label = "volume up";
                        debounce-interval = <10>;
                };
 
                key-power {
                        gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
-                       linux,code = <116>;
+                       linux,code = <KEY_POWER>;
                        label = "power";
                        debounce-interval = <10>;
                        wakeup-source;
This page took 0.055681 seconds and 4 git commands to generate.