From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Courbot Subject: Re: [PATCHv4] ARM: tegra: add gpiod_lookup table for paz00 Date: Wed, 4 Dec 2013 14:18:33 +0900 Message-ID: <529EBB29.2030008@nvidia.com> References: <1385460350-17543-2-git-send-email-mika.westerberg@linux.intel.com> <1386074998-17833-1-git-send-email-heikki.krogerus@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from hqemgate15.nvidia.com ([216.228.121.64]:12116 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809Ab3LDFSu (ORCPT ); Wed, 4 Dec 2013 00:18:50 -0500 In-Reply-To: <1386074998-17833-1-git-send-email-heikki.krogerus@linux.intel.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Heikki Krogerus , Mika Westerberg , Linus Walleij Cc: "Rafael J. Wysocki" , Chris Ball , Johannes Berg , Rhyland Klein , Adrian Hunter , Mathias Nyman , Rob Landley , Stephen Warren , Thierry Reding , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" On 12/03/2013 09:49 PM, Heikki Krogerus wrote: > This makes it possible to request the gpio descriptors in > rfkill_gpio driver regardless of the platform. > > Signed-off-by: Heikki Krogerus > --- > arch/arm/mach-tegra/board-paz00.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Changes since v3: > ----------------- > Rebased on top of Alexandre's patch "gpio: better lookup method for > platform GPIOs". > > diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c > index 06f0240..e4dec9f 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,17 @@ static struct platform_device wifi_rfkill_device = { > }, > }; > > +static struct gpiod_lookup_table wifi_gpio_lookup = { > + .dev_id = "rfkill_gpio", > + .table = { > + GPIO_LOOKUP_IDX("tegra-gpio", 25, NULL, 0, 0), > + GPIO_LOOKUP_IDX("tegra-gpio", 85, NULL, 1, 0), nit: the flags could be changed to GPIO_ACTIVE_HIGH (which evaluates to 0) to be more explicit.