diff options
author | Christoph Krapp <achterin@googlemail.com> | 2020-08-10 21:22:26 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-11 01:18:04 +0200 |
commit | 2628ec9b370805b6bc1ca6ccdc4f6ca36c647973 (patch) | |
tree | f6719347c989dc3967a4088142f4bfc1fb3249f0 | |
parent | 95dc2f5257c67c98816de1d88cdb29dd26be1d5e (diff) | |
download | upstream-2628ec9b370805b6bc1ca6ccdc4f6ca36c647973.tar.gz upstream-2628ec9b370805b6bc1ca6ccdc4f6ca36c647973.tar.bz2 upstream-2628ec9b370805b6bc1ca6ccdc4f6ca36c647973.zip |
ar71xx: fix ZyXEL NBG6616 wifi switch
The device uses a rf-kill switch instead of a button. Furthermore the
GPIO is active high.
Signed-off-by: Christoph Krapp <achterin@googlemail.com>
(cherry picked from commit 0af656e978f1adac4061516d9d2e661e101ba64c)
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c index c28a8a5118..f317cf759e 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c @@ -198,11 +198,11 @@ static struct gpio_keys_button nbg6616_gpio_keys[] __initdata = { }, { .desc = "RFKILL button", - .type = EV_KEY, + .type = EV_SW, .code = KEY_RFKILL, .debounce_interval = NBG6716_KEYS_DEBOUNCE_INTERVAL, .gpio = NBG6716_GPIO_BTN_RFKILL, - .active_low = 1, + .active_low = 0, }, { .desc = "WPS button", |