aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2019-11-16 22:37:51 +0100
committerChristian Lamparter <chunkeey@gmail.com>2019-11-17 02:49:52 +0100
commitf65330d27d077ff8dfe59f4e68f2b192ec62d8db (patch)
treea36364ae66e19f8c58e4661a55d542c64476a332 /target/linux
parentab6addc95de6458482310dff44d9641611919462 (diff)
downloadupstream-f65330d27d077ff8dfe59f4e68f2b192ec62d8db.tar.gz
upstream-f65330d27d077ff8dfe59f4e68f2b192ec62d8db.tar.bz2
upstream-f65330d27d077ff8dfe59f4e68f2b192ec62d8db.zip
ramips: assign correct key-code to wps buttons
The two ASUS WL-330N and WL-330N3G had the reset keycode assigned to the WPS button. This patch changes both devices to use KEY_WPS_BUTTON in the hopes that this fixes unwanted restarts/ unexpected behavior from the users point of view. [dropped RG21S] Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (cherry picked from commit ad65d9d7b264d6d17293c59469e770905d2f785a)
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/WL-330N.dts2
-rw-r--r--target/linux/ramips/dts/WL-330N3G.dts2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/WL-330N.dts b/target/linux/ramips/dts/WL-330N.dts
index 0eb7b7ff78..1f0a5b0e37 100644
--- a/target/linux/ramips/dts/WL-330N.dts
+++ b/target/linux/ramips/dts/WL-330N.dts
@@ -38,7 +38,7 @@
wps {
label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
diff --git a/target/linux/ramips/dts/WL-330N3G.dts b/target/linux/ramips/dts/WL-330N3G.dts
index 3801a9d9ef..8f6b88e67e 100644
--- a/target/linux/ramips/dts/WL-330N3G.dts
+++ b/target/linux/ramips/dts/WL-330N3G.dts
@@ -43,7 +43,7 @@
wps {
label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};