Re: [PATCH 2/2] of: Add array read functions with min/max size limits

2016-09-08 Thread Richard Fitzgerald
On Thu, 2016-09-08 at 10:38 -0500, Rob Herring wrote: > On Thu, Sep 8, 2016 at 10:34 AM, Richard Fitzgerald > wrote: > > On Thu, 2016-09-08 at 09:46 -0500, Rob Herring wrote: > >> On Tue, Sep 6, 2016 at 10:02 AM, Richard Fitzgerald > >> wrote: > >> > Add a new set of array reading functions that

Re: [PATCH 2/2] of: Add array read functions with min/max size limits

2016-09-08 Thread Rob Herring
On Thu, Sep 8, 2016 at 10:34 AM, Richard Fitzgerald wrote: > On Thu, 2016-09-08 at 09:46 -0500, Rob Herring wrote: >> On Tue, Sep 6, 2016 at 10:02 AM, Richard Fitzgerald >> wrote: >> > Add a new set of array reading functions that take a minimum and >> > maximum size limit and will fail if the pr

Re: [PATCH 2/2] of: Add array read functions with min/max size limits

2016-09-08 Thread Richard Fitzgerald
On Thu, 2016-09-08 at 09:46 -0500, Rob Herring wrote: > On Tue, Sep 6, 2016 at 10:02 AM, Richard Fitzgerald > wrote: > > Add a new set of array reading functions that take a minimum and > > maximum size limit and will fail if the property size is not within > > the size limits. This makes it more

Re: [PATCH 2/2] of: Add array read functions with min/max size limits

2016-09-08 Thread Rob Herring
On Tue, Sep 6, 2016 at 10:02 AM, Richard Fitzgerald wrote: > Add a new set of array reading functions that take a minimum and > maximum size limit and will fail if the property size is not within > the size limits. This makes it more convenient for drivers that > use variable-size DT arrays which

[PATCH 2/2] of: Add array read functions with min/max size limits

2016-09-06 Thread Richard Fitzgerald
Add a new set of array reading functions that take a minimum and maximum size limit and will fail if the property size is not within the size limits. This makes it more convenient for drivers that use variable-size DT arrays which must be bounded at both ends - data must be at least N entries but m