* Re: [PATCH 1/1] gpio: drop CONFIG_OF_GPIO in the definition of the struct gpio_chip
[not found] ` <1329125002-21134-1-git-send-email-plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
@ 2012-02-13 10:18 ` Nicolas Ferre
2012-02-13 10:37 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Ferre @ 2012-02-13 10:18 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD, Grant Likely, Rob Herring,
devicetree-discuss
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On 02/13/2012 10:23 AM, Jean-Christophe PLAGNIOL-VILLARD :
> this will allow to avoid the ifdef CONFIG_OF_GPIO in gpio drivers
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
> Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
> Cc: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
Added devicetree-discuss ml.
> ---
> include/asm-generic/gpio.h | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
> index 1ff4e22..c08b758 100644
> --- a/include/asm-generic/gpio.h
> +++ b/include/asm-generic/gpio.h
> @@ -122,7 +122,6 @@ struct gpio_chip {
> unsigned can_sleep:1;
> unsigned exported:1;
>
> -#if defined(CONFIG_OF_GPIO)
> /*
> * If CONFIG_OF is enabled, then all GPIO controllers described in the
Maybe you will need to rework this comment.
> * device tree automatically may have an OF translation
> @@ -131,7 +130,6 @@ struct gpio_chip {
> int of_gpio_n_cells;
> int (*of_xlate)(struct gpio_chip *gc,
> const struct of_phandle_args *gpiospec, u32 *flags);
> -#endif
I do not know if we can remove the ifdef completely of just move of_node
out of it.
> };
>
> extern const char *gpiochip_is_requested(struct gpio_chip *chip,
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] gpio: drop CONFIG_OF_GPIO in the definition of the struct gpio_chip
2012-02-13 10:18 ` [PATCH 1/1] gpio: drop CONFIG_OF_GPIO in the definition of the struct gpio_chip Nicolas Ferre
@ 2012-02-13 10:37 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-13 10:37 UTC (permalink / raw)
To: Nicolas Ferre
Cc: Grant Likely, devicetree-discuss, Arnd Bergmann, linux-arm-kernel
On 11:18 Mon 13 Feb , Nicolas Ferre wrote:
> On 02/13/2012 10:23 AM, Jean-Christophe PLAGNIOL-VILLARD :
> > this will allow to avoid the ifdef CONFIG_OF_GPIO in gpio drivers
> >
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > Cc: Arnd Bergmann <arnd@arndb.de>
> > Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
>
> Added devicetree-discuss ml.
>
> > ---
> > include/asm-generic/gpio.h | 2 --
> > 1 files changed, 0 insertions(+), 2 deletions(-)
> >
> > diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
> > index 1ff4e22..c08b758 100644
> > --- a/include/asm-generic/gpio.h
> > +++ b/include/asm-generic/gpio.h
> > @@ -122,7 +122,6 @@ struct gpio_chip {
> > unsigned can_sleep:1;
> > unsigned exported:1;
> >
> > -#if defined(CONFIG_OF_GPIO)
> > /*
> > * If CONFIG_OF is enabled, then all GPIO controllers described in the
>
> Maybe you will need to rework this comment.
>
> > * device tree automatically may have an OF translation
> > @@ -131,7 +130,6 @@ struct gpio_chip {
> > int of_gpio_n_cells;
> > int (*of_xlate)(struct gpio_chip *gc,
> > const struct of_phandle_args *gpiospec, u32 *flags);
> > -#endif
>
> I do not know if we can remove the ifdef completely of just move of_node
> out of it.
basicaly ifdef on a struct is so so
so yes
Best Regards,
J.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-13 10:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1329125002-21134-1-git-send-email-plagnioj@jcrosoft.com>
[not found] ` <1329125002-21134-1-git-send-email-plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
2012-02-13 10:18 ` [PATCH 1/1] gpio: drop CONFIG_OF_GPIO in the definition of the struct gpio_chip Nicolas Ferre
2012-02-13 10:37 ` Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).