treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / GL-MT300N.dts
index 341a8f64628338023225e7ea1bffbff7a1efe5f5..c6feb96f89c2d62dc8819818250e1b24b33ad48d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT300N", "ralink,mt7620a-soc";
        model = "GL-MT300N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 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>;
                };
        };
 };