diff options
author | Heiko Stuebner <heiko.stuebner@bqreaders.com> | 2014-02-12 01:01:42 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-12 15:51:25 +0000 |
commit | 5c24d355dd9af29abb25fb3891122af5e80a551d (patch) | |
tree | e493f5910d2ad6af1131cae38aed62fe95bcb7a5 /drivers/of | |
parent | 13cf4ea01abcc7868c64ce0f26dd5cb3abafda4c (diff) | |
download | linux-5c24d355dd9af29abb25fb3891122af5e80a551d.tar.gz linux-5c24d355dd9af29abb25fb3891122af5e80a551d.tar.bz2 linux-5c24d355dd9af29abb25fb3891122af5e80a551d.zip |
regulator: ti-abb-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 ti-abb-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 property entirely.
Signed-off-by: Heiko Stuebner <heiko.stuebner@bqreaders.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions