[PATCH v4] of: add functions to count number of elements in a property

Grant Likely grant.likely at linaro.org
Tue Feb 4 12:30:34 EST 2014


On Sat, 18 Jan 2014 09:07:30 -0600, Rob Herring <robherring2 at gmail.com> wrote:
> On Sat, Jan 18, 2014 at 6:02 AM, Heiko Stübner <heiko at sntech.de> wrote:
> > The need to know the number of array elements in a property is
> > a common pattern. To prevent duplication of open-coded implementations
> > add a helper static function that also centralises strict sanity
> > checking and DTB format details, as well as a set of wrapper functions
> > for u8, u16, u32 and u64.
> >
> > Suggested-by: Mark Rutland <mark.rutland at arm.com>
> > Signed-off-by: Heiko Stuebner <heiko at sntech.de>
> > ---
> 
> Looks good. Do you plan to convert some users to use this?

I'll take that as an acked-by. Merged, thanks.

g.




More information about the linux-arm-kernel mailing list