From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vivien Didelot Subject: Re: [PATCH] gpio: (gpio-pca953x) move header to linux/platform_data/ Date: Fri, 16 Aug 2013 11:02:20 -0400 (EDT) Message-ID: <82440653.410050.1376665340121.JavaMail.root@mail> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mail.savoirfairelinux.com ([209.172.62.77]:54654 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753375Ab3HPPCV (ORCPT ); Fri, 16 Aug 2013 11:02:21 -0400 In-Reply-To: Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com Hi Linus, You wrote: > But: > > > drivers/gpio/gpio-pca953x.c | 2 +- > (...) > > diff --git a/drivers/gpio/gpio-pca953x.c > > b/drivers/gpio/gpio-pca953x.c > > index 426c51d..8804aec 100644 > > --- a/drivers/gpio/gpio-pca953x.c > > +++ b/drivers/gpio/gpio-pca953x.c > > @@ -18,7 +18,7 @@ > > #include > > #include > > #include > > -#include > > +#include > > Why does the GPIO driver need platform data from the > I2C driver??? > > Can't this just be made to go away? I didn't dig that much in the driver, but I cannot imagine another way to pass, for instance, the setup callback. What would be a good alternative for you? Regards, Vivien From mboxrd@z Thu Jan 1 00:00:00 1970 From: vivien.didelot@savoirfairelinux.com (Vivien Didelot) Date: Fri, 16 Aug 2013 11:02:20 -0400 (EDT) Subject: [PATCH] gpio: (gpio-pca953x) move header to linux/platform_data/ In-Reply-To: Message-ID: <82440653.410050.1376665340121.JavaMail.root@mail> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Linus, You wrote: > But: > > > drivers/gpio/gpio-pca953x.c | 2 +- > (...) > > diff --git a/drivers/gpio/gpio-pca953x.c > > b/drivers/gpio/gpio-pca953x.c > > index 426c51d..8804aec 100644 > > --- a/drivers/gpio/gpio-pca953x.c > > +++ b/drivers/gpio/gpio-pca953x.c > > @@ -18,7 +18,7 @@ > > #include > > #include > > #include > > -#include > > +#include > > Why does the GPIO driver need platform data from the > I2C driver??? > > Can't this just be made to go away? I didn't dig that much in the driver, but I cannot imagine another way to pass, for instance, the setup callback. What would be a good alternative for you? Regards, Vivien