treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / WHR-G300N.dts
index 4f80f2db1a364f0ba60db20850e0de0351a87457..c0779e25bddad746c5f17098cc356e8cb3332145 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WHR-G300N", "ralink,rt3052-soc";
        model = "Buffalo WHR-G300N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                router-off {
                        label = "router-off";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x102>;
+                       linux,code = <BTN_2>;
                };
 
                router-on {
                        label = "router-on";
                        gpios = <&gpio0 8 1>;
-                       linux,code = <0x103>;
+                       linux,code = <BTN_3>;
                };
        };
 };