treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/lynxis/omap.git] / target / linux / ramips / dts / WR512-3GN-4M.dts
index 45e1463bf0f5f4d9ab34a6d380da5c3adc0f5e73..09e448019a25611870386440bd7c1ea627197152 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WR512-3GN", "ralink,rt3052-soc";
        model = "WR512-3GN-like router";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };