diff options
author | Rob Herring <robh@kernel.org> | 2023-03-28 15:15:59 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-04-13 17:46:35 -0500 |
commit | b50c788a56964a900ebcc817c8a5ad35ddad87b6 (patch) | |
tree | 979111f2e492fe935904e94bc84f7a54176544d5 /scripts/gdb/linux/utils.py | |
parent | 3d5089c4263d3594dc055e0f9c5cb990505cdd64 (diff) |
of/address: Add of_range_count() helper
Some users need a count of the number of ranges entries before
iterating over the entries. Typically this is for allocating some data
structure based on the size. Add a helper, of_range_count(), to get the
count. The helper must be called with an struct of_range_parser
initialized by of_range_parser_init().
Link: https://lore.kernel.org/r/20230328-dt-address-helpers-v1-4-e2456c3e77ab@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions