aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorHeiko Stuebner <[email protected]>2014-02-12 01:01:08 +0100
committerMark Brown <[email protected]>2014-02-12 15:50:40 +0000
commit934624d6e9f0b3d41557c4105c286e8daeaadb4e (patch)
tree346d37acd7b56801decad0bc79d57ee7f93e3dad /tools/perf/util/trace-event-scripting.c
parentb56fad85be4f6f710b8ac01a180c1e792f216873 (diff)
regulator: gpio-regulator: do not open-code counting and access of dt array elements
Open coding the counting of elements in a dt-property is abstracted by the newly introduced of_property_count_uXX_elems functions. Additionally the raw iteration over the states element exposes the endian conversion and dtb-format details, which according to Mark Rutland "would be nice to limit [...] to of_ helper functions". Thus change gpio-regulator to use the helper for element counting and of_property_read_u32_index for retrieval of individual values. This makes it possible to remove the raw access to the states property entirely. Signed-off-by: Heiko Stuebner <[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