From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 1/1 v3] dt: add property iteration helpers Date: Mon, 09 Apr 2012 09:26:06 -0600 Message-ID: <4F82FF8E.8090407@wwwdotorg.org> References: <1333968374-28451-1-git-send-email-plagnioj@jcrosoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1333968374-28451-1-git-send-email-plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Jean-Christophe PLAGNIOL-VILLARD , Linus Walleij , Grant Likely , Rob Herring Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org On 04/09/2012 04:46 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > From: Stephen Warren > > 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.