treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AWM002-EVB-4M.dts
index e1252325578f4ddd0e640bfaeebabf912ef39153..f647a9658c2aa70a794e3ec90767e175c7ed7c62 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "AWM002-4M.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "AsiaRF AWM002 EVB";
 
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };