treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / UR-336UN.dts
index e0325a7c567868bdff0b14310ee31b5670c63a54..fa753047e89d0269393d09ad1759b2399490c64a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "UR-336UN", "ralink,rt3052-soc";
        model = "UPVEL UR-336UN";
                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>;
                };
        };
 };