[PATCH 2/6] pinctrl: gpio: vt8500: Add pincontrol driver for arch-vt8500
Linus Walleij
linus.walleij at linaro.org
Wed Mar 13 14:52:55 EDT 2013
On Wed, Mar 13, 2013 at 7:26 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:
> On 03/13/2013 10:11 AM, Linus Walleij wrote:
>> I think there is something very strange about this parsing code
>> if you can't use the common accessors to get the stuff you want,
>> if you really need to inspect properties like that static inline does,
>> then it should be explained and the function should *not* be in
>> this driver but a helper in <linux/of_*> somewhere.
>
> There is no of_property_read_u32_index(), which would read the nth u32
> in a list of them. You're right there probably should be. My fault for
> not creating one when I first wrote that code in the Tegra driver:-(
Hm OK so Tony,
can we have a separate patch for adding that to the OF helpers,
(to be ACKed by Rob).
I bet Stephen will quickly send a patch for fixing up the Tegra driver
after that :-)
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list