[OpenWrt-Devel] [PATCH] ar71xx: ZyXEL NBG6716 rfkill switch fix

Marcin Mikolajczak gr4ffy at gmail.com
Fri Feb 13 04:11:23 EST 2015


ZyXEL NBG6716 "rfkill" is a switch, not a button.

Signed-off-by: Marcin Mikolajczak <gr4ffy at gmail.com>
---
Index: trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
===================================================================
--- trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c	(revision 44437)
+++ trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c	(working copy)
@@ -115,11 +115,11 @@
 	},
 	{
 		.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",
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list