+32
−0
+76
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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@arm.com> Signed-off-by:
Heiko Stuebner <heiko.stuebner@bqreaders.com> Acked-by:
Rob Herring <robh@kernel.org> Acked-by:
Grant Likely <grant.likely@linaro.org> Acked-by:
Mark Rutland <mark.rutland@arm.com> Signed-off-by:
Mark Brown <broonie@linaro.org>