Skip to content

Commit 4a48fa4

Browse files
ARM: dts: samsung: exynos4412-midas: use Linux event codes for input keys
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]>
1 parent 25e20ee commit 4a48fa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm/boot/dts/samsung/exynos4412-midas.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,21 @@
137137

138138
key-down {
139139
gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
140-
linux,code = <114>;
140+
linux,code = <KEY_VOLUMEDOWN>;
141141
label = "volume down";
142142
debounce-interval = <10>;
143143
};
144144

145145
key-up {
146146
gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
147-
linux,code = <115>;
147+
linux,code = <KEY_VOLUMEUP>;
148148
label = "volume up";
149149
debounce-interval = <10>;
150150
};
151151

152152
key-power {
153153
gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
154-
linux,code = <116>;
154+
linux,code = <KEY_POWER>;
155155
label = "power";
156156
debounce-interval = <10>;
157157
wakeup-source;

0 commit comments

Comments
 (0)