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

2014-02-05 Thread Heiko Stübner
Am Mittwoch, 5. Februar 2014, 12:06:52 schrieb Grant Likely: On Tue, 04 Feb 2014 19:48:17 +0100, Heiko Stübner he...@sntech.de wrote: Hi Grant, On Tuesday, 4. February 2014 17:30:34 Grant Likely wrote: On Sat, 18 Jan 2014 09:07:30 -0600, Rob Herring robherri...@gmail.com wrote:

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

2014-02-04 Thread Heiko Stübner
Hi Grant, On Tuesday, 4. February 2014 17:30:34 Grant Likely wrote: On Sat, 18 Jan 2014 09:07:30 -0600, Rob Herring robherri...@gmail.com wrote: On Sat, Jan 18, 2014 at 6:02 AM, Heiko Stübner he...@sntech.de wrote: The need to know the number of array elements in a property is a common

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

2014-01-18 Thread Heiko Stübner
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.

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

2014-01-18 Thread Rob Herring
On Sat, Jan 18, 2014 at 6:02 AM, Heiko Stübner he...@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