treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/yousong.git] / target / linux / ramips / dts / GL-MT750.dts
index c59ffb37565bcc293ba46fa36db00362d80a9d59..46679842bc52c6aa052b2713a48539c0b27cec3f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT750", "ralink,mt7620a-soc";
        model = "GL-MT750";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio2 2 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio2 3 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };