diff options
author | Heiko Stuebner <heiko.stuebner@bqreaders.com> | 2014-02-12 01:00:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-16 13:33:09 +0900 |
commit | 1040854779d313e3c3faf5a3ae86a8db9b6c1124 (patch) | |
tree | 9397f5b04dc9eba9d1be638f437af93f8627018e /mm | |
parent | c90c3b6b054d2472bc654f95b73b0d27e91b0430 (diff) |
of: add functions to count number of elements in a property
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>
(cherry picked from commit ad54a0cfbeb4bd4033d09017557ccbc423f9d5ff)
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions