diff options
| author | Christian Lamparter <chunkeey@gmail.com> | 2019-11-16 22:37:51 +0100 |
|---|---|---|
| committer | Christian Lamparter <chunkeey@gmail.com> | 2019-11-17 02:49:52 +0100 |
| commit | f65330d27d077ff8dfe59f4e68f2b192ec62d8db (patch) | |
| tree | a36364ae66e19f8c58e4661a55d542c64476a332 | |
| parent | ab6addc95de6458482310dff44d9641611919462 (diff) | |
| download | upstream-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)
| -rw-r--r-- | target/linux/ramips/dts/WL-330N.dts | 2 | ||||
| -rw-r--r-- | target/linux/ramips/dts/WL-330N3G.dts | 2 |
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 0eb7b7ff78c..1f0a5b0e370 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 3801a9d9efc..8f6b88e67e2 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>; }; }; }; |
