treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DAP-1350.dts
index 4628544fb6ace70d3d37f7d6c0654d623061a0a3..c3225db9527ba333bd8c1b4f24445c14763d9119 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DAP-1350", "ralink,rt3052-soc";
        model = "D-Link DAP-1350";
                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>;
                };
        };
 };