From 503a1aaaf690a29c98074fa09d8fc5d7b33cbced Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 14 Feb 2015 20:48:42 +0000 Subject: ar71xx: ZyXEL NBG6716 rfkill switch fix ZyXEL NBG6716 "rfkill" is a switch, not a button. Signed-off-by: Marcin Mikolajczak SVN-Revision: 44453 --- target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target') 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 acdfb0ae70..0ca2e56b0b 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c @@ -115,11 +115,11 @@ static struct gpio_keys_button nbg6716_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 = "USB1 eject button", -- cgit v1.2.3