[PATCH V3] dt: add property iteration helpers

2012-03-20 Thread 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: struct property *prop; const __be32 *p; u32 u; of_property_for_each_u32(np, "propname", prop, p, u) printk("U32 va

Re: [PATCH V3] dt: add property iteration helpers

2012-03-20 Thread Rob Herring
On 03/20/2012 06:08 PM, Stephen Warren wrote: > 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: > > struct property *prop; > const __be32 *p; > u32 u; > of_property_f