treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / SAP-G3200U3.dts
index d6f2f3057668ce1d45c757e5b0ad73fe0ddb7eca..9069f7cff23e89d635f5d1a4ad65aa38def3ea15 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "STORYLiNK SAP-G3200U3";
                reset {
                        label = "reset";
                        gpios = <&gpio0 16 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };