of: Make of_find_property_value_of_size take a length range
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Mon, 12 Sep 2016 13:01:28 +0000 (14:01 +0100)
committerRob Herring <robh@kernel.org>
Thu, 15 Sep 2016 13:32:57 +0000 (08:32 -0500)
commit79ac5d31df7011e2b60dba4bd1e2f9a9f65e5e1e
treec841f12430f9ea9504a3a9a47090e8cccd7cf315
parentd4b8e2c5b07e20f3ef0ca0a2bde390beb0f8fda5
of: Make of_find_property_value_of_size take a length range

In preparation for adding variable-length array reads, change
of_find_property_value_of_size so that it takes an optional
maximum length. If the maximum is passed as 0, the behaviour is
unchanged and it will return a property if it's >= the requested
minimum length. If maximum is non-zero it will only return a
property whose length is min <= l <= max.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c