ramips: assign correct key-code to wps buttons
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Nov 2019 21:37:51 +0000 (22:37 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Nov 2019 21:37:51 +0000 (22:37 +0100)
The ASUS WL-330N(3G) and the Edimax RG21S had the
reset keycode assigned to the WPS button. This patch
changes all three devices to use KEY_WPS_BUTTON in
the hopes that this fixes unwanted restarts/
unexpected behavior from the users point of view.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ramips/dts/mt7621_edimax_rg21s.dts
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts

index b6bb448fd82dca76da451dfcd48b1c49529a1af8..6ed08413c143c5cdf0543f00b5e2f152539de94c 100644 (file)
@@ -39,7 +39,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index ee0cd0ad1fb210babeb8086dd0db8c17a1f470ea..48a6e3a4cff7a1c08dc22f0c6de4cbf3ea4a8b35 100644 (file)
@@ -43,7 +43,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 235c90fc4d68a803b71055564cd38eabc64b9786..8453147b6b76cd80322feb5e186ffe8ab4c0ece5 100644 (file)
@@ -48,7 +48,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };