[PATCH] gpiolib: Add of_get_gpio_chip_by_phandle() helper
Linus Walleij
linus.walleij at linaro.org
Mon May 7 09:08:31 EDT 2012
On Wed, May 2, 2012 at 6:51 PM, viresh kumar <viresh.linux at gmail.com> wrote:
> So i need someway of accessing gpio chip
> from pinctrl driver. How should i do it?
I once proposed a patch like this to gpiolib and Grant NACK:ed it.
It was one of the reasons I created pinctrl to begin with...
Yes, I know it is sometimes a trouble to get the struct gpio_chip *
pointer out, especially if the drivers for pinctrl and GPIO is in
different files with their own say platform_device probe() function
or so.
The U300 solution isn't super-clean, and I have another
solution for Nomadik which is cleaner, but there GPIO and
pinctrl is in the same file. Expect to mail that out tomorrow.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list