diff options
author | Heiko Stuebner <[email protected]> | 2014-02-12 01:00:34 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2014-02-12 15:48:48 +0000 |
commit | ad54a0cfbeb4bd4033d09017557ccbc423f9d5ff (patch) | |
tree | 673298cf99ab63d9bc0ab19b705537966d65e2e3 /tools/perf/util/trace-event-scripting.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (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 <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Grant Likely <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions