[PATCH] drivers/pinctrl: grab default handles from device core

Linus Walleij linus.walleij at linaro.org
Wed Dec 12 14:58:54 EST 2012


On Wed, Dec 12, 2012 at 12:58 PM, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj at jcrosoft.com> wrote:

>> > +#ifdef CONFIG_PINCTRL
>> > +   struct dev_pin_info     pins;
>> > +#endif

> can do do not put ifdef in the struct as if will force us to put ifdef in the
> c code too instead of just use a inline function

Oh, I'm just planning to use this from the pinctrl core code itself
and the code in drivers/base/pinctrl.c (which is only compiled when
CONFIG_PINCTRL is set) so there is no risk for that right now.

I would agree if we exposed to drivers, like the dev_pm_ops...
but that's not the plan right now.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list