treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WNCE2001.dts
index 2dc39ce142af7d9335954aed445b697f1d2de5b7..92d03defdce365d3be6667e8a3ccafbb52e4913a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WNCE2001", "ralink,rt3052-soc";
        model = "Netgear WNCE2001";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                rt {
                        label = "rt";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };