brcm63xx: make use of dt-includes
authorJonas Gorski <jogo@openwrt.org>
Thu, 16 Jul 2015 11:15:02 +0000 (11:15 +0000)
committerJonas Gorski <jogo@openwrt.org>
Thu, 16 Jul 2015 11:15:02 +0000 (11:15 +0000)
Now that we have a dtc command that invokes the preprocessor, make use
of it and replace the magic numbers with KEY_* defines.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46391

78 files changed:
target/linux/brcm63xx/dts/a226g.dts
target/linux/brcm63xx/dts/a226m-fwb.dts
target/linux/brcm63xx/dts/a226m.dts
target/linux/brcm63xx/dts/a4001n.dts
target/linux/brcm63xx/dts/a4001n1.dts
target/linux/brcm63xx/dts/agpf-s0.dts
target/linux/brcm63xx/dts/ar-5381u.dts
target/linux/brcm63xx/dts/ar-5387un.dts
target/linux/brcm63xx/dts/ar1004g.dts
target/linux/brcm63xx/dts/bcm96318ref.dts
target/linux/brcm63xx/dts/bcm96318ref_p300.dts
target/linux/brcm63xx/dts/bcm963268bu_p300.dts
target/linux/brcm63xx/dts/bcm963269bhr.dts
target/linux/brcm63xx/dts/bcm963281TAN.dts
target/linux/brcm63xx/dts/bcm96328avng.dts
target/linux/brcm63xx/dts/bcm96338GW.dts
target/linux/brcm63xx/dts/bcm96338W.dts
target/linux/brcm63xx/dts/bcm96345GW2.dts
target/linux/brcm63xx/dts/bcm96348GW-10.dts
target/linux/brcm63xx/dts/bcm96348GW-11.dts
target/linux/brcm63xx/dts/bcm96348GW.dts
target/linux/brcm63xx/dts/bcm96348R.dts
target/linux/brcm63xx/dts/bcm96358VW.dts
target/linux/brcm63xx/dts/bcm96358VW2.dts
target/linux/brcm63xx/dts/bcm96368MVNgr.dts
target/linux/brcm63xx/dts/bcm96368MVWG.dts
target/linux/brcm63xx/dts/cpva502plus.dts
target/linux/brcm63xx/dts/cpva642.dts
target/linux/brcm63xx/dts/ct-5365.dts
target/linux/brcm63xx/dts/ct-6373.dts
target/linux/brcm63xx/dts/ct536plus.dts
target/linux/brcm63xx/dts/cvg834g.dts
target/linux/brcm63xx/dts/dg834g_v4.dts
target/linux/brcm63xx/dts/dg834gtpn.dts
target/linux/brcm63xx/dts/dgnd3700v1.dts
target/linux/brcm63xx/dts/dsl-2640b-b.dts
target/linux/brcm63xx/dts/dsl-2640u.dts
target/linux/brcm63xx/dts/dsl-2650u.dts
target/linux/brcm63xx/dts/dsl-274xb-c.dts
target/linux/brcm63xx/dts/dsl-274xb-f.dts
target/linux/brcm63xx/dts/dsl-275xb-d.dts
target/linux/brcm63xx/dts/dv-201amr.dts
target/linux/brcm63xx/dts/dva-g3810bn_tl.dts
target/linux/brcm63xx/dts/f5d7633.dts
target/linux/brcm63xx/dts/fast2404.dts
target/linux/brcm63xx/dts/fast2504n.dts
target/linux/brcm63xx/dts/fast2604.dts
target/linux/brcm63xx/dts/fast2704v2.dts
target/linux/brcm63xx/dts/gw6000.dts
target/linux/brcm63xx/dts/gw6200.dts
target/linux/brcm63xx/dts/hg520v.dts
target/linux/brcm63xx/dts/hg553.dts
target/linux/brcm63xx/dts/hg556a-a.dts
target/linux/brcm63xx/dts/hg556a-b.dts
target/linux/brcm63xx/dts/hg556a-c.dts
target/linux/brcm63xx/dts/hg655b.dts
target/linux/brcm63xx/dts/homehub2a.dts
target/linux/brcm63xx/dts/livebox-blue-5g.dts
target/linux/brcm63xx/dts/magic.dts
target/linux/brcm63xx/dts/nb4-fxc-r1.dts
target/linux/brcm63xx/dts/nb4-ser-r0.dts
target/linux/brcm63xx/dts/nb6-ser-r0.dts
target/linux/brcm63xx/dts/p870hw-51a-v2.dts
target/linux/brcm63xx/dts/rg100a.dts
target/linux/brcm63xx/dts/rta1025w.dts
target/linux/brcm63xx/dts/rta1320.dts
target/linux/brcm63xx/dts/rta770bw.dts
target/linux/brcm63xx/dts/rta770w.dts
target/linux/brcm63xx/dts/spw303v.dts
target/linux/brcm63xx/dts/spw500v.dts
target/linux/brcm63xx/dts/td-w8900gb.dts
target/linux/brcm63xx/dts/usr9108.dts
target/linux/brcm63xx/dts/v2110.dts
target/linux/brcm63xx/dts/v2500v-bb.dts
target/linux/brcm63xx/dts/vg50.dts
target/linux/brcm63xx/dts/vr-3025u.dts
target/linux/brcm63xx/dts/vr-3025un.dts
target/linux/brcm63xx/dts/wap-5813n.dts

index 1b40507b2e2abf216e71e8a5695f4f9692f3a6d3..b62c68ffd21013e29079ca0520cf47abb0788435 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Pirelli A226G";
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 011f312755203aaf84da8f76ced432bb456e814f..d91fffe3d57aaf2ac972dbd298acbb52a6b59280 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Pirelli A226M-FWB";
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 13400f2b429ec6fd9a280dc926952fbc5f2de71d..d3f628da8473f467954750f0f3a89eba308a56c1 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Pirelli A226M";
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 1f8eaf66e9c7ba5bd35af1fbdcc244be4cee974d..13c5e503aadbae32389639d865f361d904c155be 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "ADB P.DG A4001N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 24 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 17bd64321bea407e718f113260ef5d48a127fbfb..e30d6d0c747cbe4562b9610117b8b469a25c91e8 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "ADB P.DG A4001N1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wlan";
                        gpios = <&gpio0 24 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
        };
 
index eaa45b9e09618ebc26161cc9087f1b3d2dc9c67d..4662b2d67f8cd1f1a675c67155bedf9c845251fc 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Pirelli Alice Gate AGPF-S0";
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index d5f728a84dce681132bf1c3b87ebe9791f1b8fbe..a148ec43eb0431420af0678cb0bf958fa7d24661 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend AR-5381u";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index a8883e2f7bba646687690be1bfc6c9ed9e19e8d2..c30da06dc93a671caebcb287d7d1c3b0321274e3 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend AR-5387un";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index fdd5c4781a8cbc6eacfccc6cf926b2216ffe5b1a..07407992ec0449edf5e74e7a7447dd23f5c484f8 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "ASMAX AR 1004g";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 84b33362c91e45912e44a1c5f9b50c6f36ca17a9..79137dbd67dd7e39e067c0641eaae91fdeaf7815 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6318.dtsi"
+#include "bcm6318.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96318REF reference board";
                wps {
                        label = "wps";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
         };
 
index 5d91d7608d49c46464740038e8ad2cef338b57d8..be1db5aa200d1c96a7dfa4e18fbeac9aa3296a92 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6318.dtsi"
+#include "bcm6318.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96318REF_P300 reference board";
                wps {
                        label = "wps";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
         };
 
index cbf63ef41ce98c1a8fd3e1c3cab00d4ed46d0f22..f659b396be4d46c4ea39e88822d79f73b90df92f 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm63268.dtsi"
+#include "bcm63268.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM963268BU_P300 reference board";
                reset {
                        label = "reset";
                        gpios = <&gpio1 0 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 1 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
         };
 };
index dcef989859354f79a7355ebd29f96a75609ddb54..01a76804f8b4ffe16490ec2d33118ad5913a34cc 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm63268.dtsi"
+#include "bcm63268.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM963269BHR reference board";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 0 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
         };
 
index f257125c8aa424d1f81f218fb89492268a30c166..21b329aecd1d00413db91da60b585655cec41471 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom bcm963281TAN reference board";
index 8dbdbda72c719309ad108d9296c93aa7f54549db..3ed4b223b026ce94e2330e04c877e86846f5261f 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96328avng reference board";
index d378df1f6d3467aff52072146d1e79c0299919e5..d7af9ef6510254977c7507a54c4a2d3fab4f1ef0 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6338.dtsi"
+#include "bcm6338.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96338GW reference board";
index 9cca783f29737830f7b93273c4faf2c70c9d5a28..4904073df1cad4193a923d14b56de2154ff929f2 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6338.dtsi"
+#include "bcm6338.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96338W reference board";
index 35417ab955d03202a1b0901c09509b131e1b631f..721418549151e3d654601546cb4a8e80cd6c8c21 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6345.dtsi"
+#include "bcm6345.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96345GW2 reference board";
index 173a8c3548b94a3877960b67efdf3af1a375ba6b..5f60d36aa3e254157d311aaab4b06e53e4367dbd 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96348GW-10 reference board";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 6 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 15828a13ed2ff368db1d3245b1756396afd77f27..efd3e912938e81dbca26b458e195a15e3b3ac06f 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96348GW-11 reference board";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index fcce2393950e7e3e3ff6eb3df888364f2cc095c7..cf40e5263406eb05fa7955be30e531f8f1c5997c 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96348GW reference board";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 4 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 69842b183d08d129cc09340c83aff73f581fe562..d7df2a91af525aa687a3745951e4c34653bd07bc 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom 96348R reference board";
index 57e26f6bca9ef77e8060af797b62abba8374af1a..ff924992d6b8f468ed9063c323d4dfc83e8c761e 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96358VW reference board";
index 730426f9062040ab48e75418404526d31b887ee7..8f7070a3544ce9907d7281bb4490f4a09e1b7cb5 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96358VW2 reference board";
index fa3e6e8ed9bec51bb452d766a6e4222e9fb27ade..21f1395b917f207d2e49268bdb182fa399f917e2 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96368MVNgr reference board";
index 0fb356637da219db0f19b1fe8f13f03d47e8eb6b..04442ab3984190e1637cfaa351b5ac4c0daf1d0c 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM96368MVWG reference board";
index 3cb702d5e880da088848591e5f39f003922718eb..f00d73e1c46ff91b471b32dd47f1a1e06cc7ab6b 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Telsey CPVA502+";
index b9a215a989390b2d2c2f0cba9d7fa61676ea3f2f..8d72e0261bde1f67478c39f968a0517a919cb593 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Telsey CPVA642-type (CPA-ZNTE60T)";
                reset {
                        label = "reset";
                        gpios = <&gpio1 4 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio1 5 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 7b89bf2ba477ab0c03f5e9556027a0d615edd0ef..6f452fefc1541101df65e38b9b5585fe7f46c5df 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend CT-5365";
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wlan {
                        label = "wlan";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio1 3 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index b8be39dd15980d0e32287afd999e9c409cdf73bb..d6f0f8b00dd8e5c36b79a460edd689b7409760b5 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend CT-6373";
@@ -36,7 +38,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 3 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index c92bc90a931d256f0942692caa38fc9e06713994..c05068a723b19524b74f2b51e5540611d6bd332c 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend CT-536+/CT-5621T";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index d75316b38b42348972c333d6064b2dd6a7137fd2..b61a07c1c1ea96eb35358d48d5dfc45820f022ea 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm3368.dtsi"
+#include "bcm3368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Netgear CVG834G";
index 8cbb3f3ce9cdd64d9de371fe3b65b4c415b219a5..148530032c71c77c8f554f2275fdc7f9caec6301 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Netgear DG834G v4";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 6 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index f4ece9e0b80d6b7985ebfb1d9610e228c4ec58f1..889435822dbe9878410f1469b06b8c69dd34690b 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Netgear DG834GT/PN";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 6 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index b349576239969873baded9cb698e96eab9c3475c..8c8c0bf8441af40b035613120d802c26cc77a16e 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Netgear DGND3700v1/DGND3800B";
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio1 3 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 6f2bda659ce7ef609f88c9caeef510678555e777..83b36a559784d4731d06e570cb38a0057d200cbb 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "D-Link DSL-2640B rev B2";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index c2b3daf27c432c303ba3c8b22a2511745832bebd..d3d27725e2fbbd268f2363622d25c112a90c16c8 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6338.dtsi"
+#include "bcm6338.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "D-Link DSL-2640U/BRU/C";
index 7e88e0146e02bdb1c93167b38850134f9a0dde07..2847c18699d3f947ed4db5c70c1f3e1d6daf628b 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "D-Link DSL-2650U";
index 1546b6a4959d743e722dc4ca59dad810feea2c08..29ae125479664815a82cb0e6c1a7cac594c12cd7 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "D-Link DSL-2740B/DSL-2741B rev C2/3";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index f8ad084a7c1ce54a8c565d90f44053f83fe4641c..fb1ded7c62c4e11670c05def5b7cfc3532298a29 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "D-Link DSL-2740B/DSL-2741B rev F1";
                wifi {
                        label = "wifi";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 24 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 44c4c5eafd797afe218b683a0de894d6c567b208..dd00e2c5731943ddaacf23b899130c301f032d1c 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6318.dtsi"
+#include "bcm6318.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "D-Link DSL-2750B/DSL-2751 rev D1";
                wifi {
                        label = "wifi";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 9f8660ab6f87b692e4b34701c427bbf2b4ea65d3..f792ac268b19388b2c9d557d4ace69c58775b12e 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Davolink DV-201AMR";
index 263485db0c92a552c1e51c1f808a81b247f4bc5b..20098258a38f84c72b5f1ab06baa4a1161c9095e 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "D-Link DVA-G3810BN/TL";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 81e1e255d61c3951a1b1a116f9bbb478afb9eaab..519df1e5665c3a2e762df165f78f2b8393365e12 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Belkin F5D7633";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 6 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 92ba6bf99e01efed847e38c1bba0acb294f62df1..5309703faefcd38ee7d2bc2d82a3cdb859e28d8d 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Sagem F@ST2404";
index a3bb927ef9e4893b84ef5eb3e5b549f8278671e2..cf453af2ad6c0c0fe2407fa269d45a1e4a1f5e3a 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6362.dtsi"
+#include "bcm6362.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Sagem F@ST2504n";
                reset {
                        label = "reset";
                        gpios = <&gpio0 24 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 25 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index b5bc487c920f1746f13308e522d409a07058d48e..c6b71d1cde0b0469713f5826fc9711708bbd0841 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Sagem F@ST2604";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 053ad354db4893348cb40cc0e0574858a29b4dac..3f56827d1a5358e1375d9e7310a8bc587aab5666 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Sagem F@ST2704V2";
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 15 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 24 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index a9f80288b332c837d670d9efc5bdf835dccb39fd..69424e08a04a414d988e60183e799b7a5a3a95b5 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "TECOM GW6000";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 4 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 2ffdf96b5c0b083c629c0833b808d7c2ee06e362..2bd438192702afeb46fbb0fc3b661a1cc51a274f 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "TECOM GW6200";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 4 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 88647fa01be0cead7d9ce863e25d409472069065..7b6b36f06a2ebe13797056df6f2509aec83176aa 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei EchoLife HG520v";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 4d798246cf29f69a41a1bf090d4106e08b1421d2..b23ceaaa80bd34d9604b2072b20256ac79ee1d0f 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei EchoLife HG553";
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 70f10dcd9fc1c098cb769b6ee61bbec804b55abe..98e0a83430ded589a0c4259e0b23a6f942d098a3 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei EchoLife HG556a (version A)";
                help {
                        label = "help";
                        gpios = <&gpio0 8 1>;
-                       linux,code = <0x8a>;
+                       linux,code = <KEY_HELP>;
                };
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                restart {
                        label = "restart";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0xab>;
+                       linux,code = <KEY_CONFIG>;
                };
        };
 
index b42e86fa70474ccc2477877a6cef134b3cd26880..8a19856e29c044351c0fff2ae323eee5fa61a3ef 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei EchoLife HG556a (version B)";
                help {
                        label = "help";
                        gpios = <&gpio0 8 1>;
-                       linux,code = <0x8a>;
+                       linux,code = <KEY_HELP>;
                };
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                restart {
                        label = "restart";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0xab>;
+                       linux,code = <KEY_CONFIG>;
                };
        };
 
index 4c845edd4a9048aed272eac61ca029ca76099e1c..9798091871ed7d3768952c806fd1039573525275 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei EchoLife HG556a (version C)";
                help {
                        label = "help";
                        gpios = <&gpio0 8 1>;
-                       linux,code = <0x8a>;
+                       linux,code = <KEY_HELP>;
                };
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                restart {
                        label = "restart";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0xab>;
+                       linux,code = <KEY_CONFIG>;
                };
        };
 
index 256233d7cf338c4e4f33ff1cb75c029b74c5732d..b7722dfc73622ad4a0e9e3437b74b4b79a884dc3 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei HG655b";
                wps {
                        label = "wps";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 28de52871c1b0c9be5dab7d81407110fb6d08b07..9e7ce2fcf6119d2d8ae178090d2b2cc167ab4fe9 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "BT Home Hub 2.0 Type A";
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 523bbe985de4991f8ea93badce53b027bbd3793e..bc3d403559b80d3391fe5b7142799884290a2352 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Inventel Livebox 1";
                button1 {
                        label = "BTN_1";
                        gpios = <&gpio1 4 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
 
                button2 {
                        label = "BTN_2";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x102>;
+                       linux,code = <BTN_2>;
                };
        };
 
index bdefbee6473e9e5c5b873c0228cf659065e38ecd..b923ee8dfd28dc0f12a902c13cf45bcfab222a64 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Alice W-Gate";
index 0e9cc24986643c4219a75f9eaa09df20e8bbdce4..65f26c728129878e64f4fbc255d712c7d862ae2a 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "SFR Neuf Box 4 (Foxconn)";
                service {
                        label = "service";
                        gpios = <&gpio0 27 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
                clip {
                        label = "clip";
                        gpios = <&gpio0 31 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index d7abbf1ab8d86be68e2765729914e4a43419fadd..1a48b728221040d375eecdf51161b4bbf803e522 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "SFR Neuf Box 4 (Sercomm)";
                service {
                        label = "service";
                        gpios = <&gpio0 27 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
                clip {
                        label = "clip";
                        gpios = <&gpio0 31 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index ae16ad3965c24022038be17adc5cad90a6b6cc44..c23ff904c3121cf5dc9ecb45ccac404ad7c486f8 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6362.dtsi"
+#include "bcm6362.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "SFR neufbox 6 (Sercomm)";
                service {
                        label = "service";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 24 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 25 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 7c9c65ce000c3173d53e830f78a1665bb63391ab..606b8961931ba39dcf64cd7e1bcaa2f435ffba4a 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Zyxel P870HW-51a v2";
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio1 3 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 824b5e475cc73222baba6062f935be19017b596f..503ae57f216a9d17cfeb171ffac71d112eef110d 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Alcatel RG100A";
index 91c02f7664f3dc574ff332aa67d9965d82dd2423..5d0dce0b777f4c5564e6b40c32a80ab1a97b49fc 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Dynalink RTA1025W";
index 30c1f1405253597374cbce78caf78f2bd1d488ba..c8c2827c6a95cc029339235d23da025fd4b0e88b 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6338.dtsi"
+#include "bcm6338.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Dynalink RTA1320";
index 73f737aed8d9bd4500fea46b4c67a2508968638c..d24334e90918e3dbec6ca11f141453e2d0bf3455 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6345.dtsi"
+#include "bcm6345.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Siemens Gigaset SE515";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
         };
 
index b6c340f64741c0dafde944e854ae8ceaa32e958e..2c2d6fb9527e0837918c6e2842ce0ec3e4b00037 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6345.dtsi"
+#include "bcm6345.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Dynalink RTA770W";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
         };
 
index ed3c322e058aaa318091a1584fa562cb92fad935..2dcf7527535d32f0f47bba33fd4080474c646d0e 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "T-Com Speedport W303 V";
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                ses {
                        label = "ses";
                        gpios = <&gpio1 5 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 9c1feff376a80a2dbae212eed93d1629ed38bf5e..2fcf958e8e9e86781b804cb1319b546087d73104 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "T-Com Speedport W500 V";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 74fef37813f7eab8d0d53a906d16f3db4443e982..a1480f69a9caaa8851a243538b5a5ca7b6f9028a 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "TP-Link TD-W8900GB";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index b50d597f43d36f0f6f3ad63d9b308b43fc27e179..64a5ab3dcb022324829def1b0f2b354cce1c341c 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "USRobotics 9108";
index 0721d248efdeafc56d1e0b5fdf6497e2a655e1cc..26053398b75751e9436d0c3691373da808ce317f 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "BT Voyager 2110";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 5f06c6361faec4630591f628d72e0d4036007bb9..5a9223f684379bbdb2a81e0065a5a90625215e1b 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "BT Voyager V2500V";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 31 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 3d1165c638b79c6500fd97bb6d305b0cf3f15cf8..f95fa9558f5142f09f836c1cf7bab3eea5a88c03 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm63268.dtsi"
+#include "bcm63268.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Inteno VG50";
                reset {
                        label = "reset";
                        gpios = <&gpio1 0 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
         };
 };
index a48b8f96afcfa09478ff8db3298e9540f5532571..b24b590dc35afe0ea3f4befcebed170ac9d66879 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend VR-3025u";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 8dfec310b88ab784dc2f154d4cde6e1de61c1e17..124045f4f52fdacb20fbefbacc2c63d828aaa8fa 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend VR-3025un";
@@ -16,7 +18,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index f7765d59cb5138a156a439e9a571b6396a3f0716..1c31c5713a2133e301074c2c3fa6acb5d322e2d3 100644 (file)
@@ -1,6 +1,8 @@
 /dts-v1/;
 
-/include/ "bcm6368.dtsi"
+#include "bcm6368.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Comtrend WAP-5813n";
                wlan {
                        label = "wlan";
                        gpios = <&gpio1 0 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio1 3 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };