From patchwork Mon Apr 20 23:24:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael J. Bazzinotti" X-Patchwork-Id: 462938 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 673E114012F for ; Tue, 21 Apr 2015 09:29:55 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 858AA28BDE0; Tue, 21 Apr 2015 01:24:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 0A69728BC51 for ; Tue, 21 Apr 2015 01:24:20 +0200 (CEST) X-policyd-weight: using cached result; rate: -7.6 Received: from mx1.cs.umb.edu (mx1.cs.umb.edu [158.121.104.3]) by arrakis.dune.hu (Postfix) with ESMTP for ; Tue, 21 Apr 2015 01:24:10 +0200 (CEST) Received: from grn.cs.umb.edu (grn.cs.umb.edu [192.168.104.178]) by mx1.cs.umb.edu (8.12.11/8.12.8) with ESMTP id t3KNP3ui027353; Mon, 20 Apr 2015 19:25:03 -0400 (EDT) Received: by grn.cs.umb.edu (Postfix, from userid 7343) id AF3FF463880; Mon, 20 Apr 2015 19:25:03 -0400 (EDT) From: "Michael J. Bazzinotti" To: openwrt-devel@lists.openwrt.org Date: Mon, 20 Apr 2015 19:24:16 -0400 Message-Id: <1429572262-20668-5-git-send-email-bazz@grn.cs.umb.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429572262-20668-1-git-send-email-bazz@grn.cs.umb.edu> References: <1429572262-20668-1-git-send-email-bazz@grn.cs.umb.edu> X-Scanned-By: MIMEDefang 2.65 on 192.168.104.3 Cc: "Michael J. Bazzinotti" Subject: [OpenWrt-Devel] [PATCH 05/11] ar71xx: set all buttons to be active_low on wnr2000-v4 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" From: "Michael J. Bazzinotti" Originally pressing a button would trigger a release state and vice-versa, as observed from hotplug.d. Signed-off-by: Michael J. Bazzinotti --- target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c index df0bf0e..cc478e6 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c @@ -102,6 +102,7 @@ static struct gpio_keys_button wnr2000v4_gpio_keys[] __initdata = { .code = KEY_WPS_BUTTON, .debounce_interval = WNR2000V4_KEYS_DEBOUNCE_INTERVAL, .gpio = WNR2000V4_GPIO_BTN_WPS, + .active_low = 1, }, { .desc = "Reset button", @@ -109,6 +110,7 @@ static struct gpio_keys_button wnr2000v4_gpio_keys[] __initdata = { .code = KEY_RESTART, .debounce_interval = WNR2000V4_KEYS_DEBOUNCE_INTERVAL, .gpio = WNR2000V4_GPIO_BTN_RESET, + .active_low = 1, }, { .desc = "WLAN button", @@ -116,6 +118,7 @@ static struct gpio_keys_button wnr2000v4_gpio_keys[] __initdata = { .code = KEY_WLAN, .debounce_interval = WNR2000V4_KEYS_DEBOUNCE_INTERVAL, .gpio = WNR2000V4_GPIO_BTN_WLAN, + .active_low = 1, }, };