aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
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:48:39 +0100
commit960de44fa980d3be0880ebd18cac872aac624a3e (patch)
treef1bb0fd750b94babe30aedaae1779f40bd06419a /target/linux/ramips
parentb50177d15180241cb15822733920970355e88b49 (diff)
downloadupstream-960de44fa980d3be0880ebd18cac872aac624a3e.tar.gz
upstream-960de44fa980d3be0880ebd18cac872aac624a3e.tar.bz2
upstream-960de44fa980d3be0880ebd18cac872aac624a3e.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 all three 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/ramips')
-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 ee0cd0ad1f..48a6e3a4cf 100644
--- a/target/linux/ramips/dts/WL-330N.dts
+++ b/target/linux/ramips/dts/WL-330N.dts
@@ -43,7 +43,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 235c90fc4d..8453147b6b 100644
--- a/target/linux/ramips/dts/WL-330N3G.dts
+++ b/target/linux/ramips/dts/WL-330N3G.dts
@@ -48,7 +48,7 @@
wps {
label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};