]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78b07913a139f96487aa87e963a5cd9e32648824
treec841f12430f9ea9504a3a9a47090e8cccd7cf315
parente3e266f08cccd87e84088da743e39072e02dcfb9
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