From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: [PATCH v3 1/6] ARM: tegra: add gpiod_lookup table for paz00 Date: Tue, 26 Nov 2013 12:05:45 +0200 Message-ID: <1385460350-17543-2-git-send-email-mika.westerberg@linux.intel.com> References: <1385460350-17543-1-git-send-email-mika.westerberg@linux.intel.com> Return-path: Received: from mga09.intel.com ([134.134.136.24]:21243 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755168Ab3KZKGA (ORCPT ); Tue, 26 Nov 2013 05:06:00 -0500 In-Reply-To: <1385460350-17543-1-git-send-email-mika.westerberg@linux.intel.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: linux-acpi@vger.kernel.org Cc: "Rafael J. Wysocki" , Linus Walleij , Chris Ball , Johannes Berg , Rhyland Klein , Adrian Hunter , Alexandre Courbot , Mathias Nyman , Rob Landley , Heikki Krogerus , Stephen Warren , Thierry Reding , Mika Westerberg , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org From: Heikki Krogerus This makes it possible to request the gpio descriptors in rfkill_gpio driver regardless of the platform. Signed-off-by: Heikki Krogerus Signed-off-by: Mika Westerberg Tested-by: Stephen Warren --- arch/arm/mach-tegra/board-paz00.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c index 06f024070dab..a309795da665 100644 --- a/arch/arm/mach-tegra/board-paz00.c +++ b/arch/arm/mach-tegra/board-paz00.c @@ -18,6 +18,7 @@ */ #include +#include #include #include "board.h" @@ -36,7 +37,13 @@ static struct platform_device wifi_rfkill_device = { }, }; +static struct gpiod_lookup wifi_gpio_lookup[] = { + GPIO_LOOKUP_IDX("tegra-gpio", 25, "rfkill_gpio", NULL, 0, 0), + GPIO_LOOKUP_IDX("tegra-gpio", 85, "rfkill_gpio", NULL, 1, 0), +}; + void __init tegra_paz00_wifikill_init(void) { + gpiod_add_table(wifi_gpio_lookup, ARRAY_SIZE(wifi_gpio_lookup)); platform_device_register(&wifi_rfkill_device); } -- 1.8.4.3