treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / Timecloud.dts
index 8ee312cd866584f9faa151951644595813918dc6..2d60324f246b814e8f74c29c0aef541778496a43 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "Thunder Timecloud";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio0 4 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };