[PATCH 1/1 v3] dt: add property iteration helpers

Stephen Warren swarren at wwwdotorg.org
Tue Apr 10 01:26:06 EST 2012


On 04/09/2012 04:46 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> From: Stephen Warren <swarren at wwwdotorg.org>
> 
> This patch adds macros of_property_for_each_u32() and
> of_property_for_each_string(), which iterate over an array of values
> within a device-tree property. Usage is for example:
...
> ---
> I need it for at91 for the interrupt controller
> and pinctrl

OK. But just reposting the patch isn't a good idea; we don't want it to
get applied directly to multiple places.

I'd included this patch in my series to add DT support into the pinctrl
subsystem, and hence I believe it was planned to merge it into that
tree. If it's needed elsewhere, I guess it should be put in a branch
that can be merged into both the pinctrl tree and elsewhere.

Linus, Grant, Rob, can you co-ordinate this? If you want, I can create
the branch and send a pull request to LinusW. I'm not sure which branch
Jean-Christophe needs this in for his IRQ work.


More information about the devicetree-discuss mailing list