Heiko Stuebner 5c24d355dd 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>
2014-02-12 15:51:25 +00:00
..
2014-01-08 17:13:57 +00:00
2012-11-20 10:31:26 +09:00
2013-10-15 13:21:44 +01:00
2014-01-25 13:19:10 -08:00
2013-07-30 12:24:20 +01:00
2013-12-18 17:24:41 +00:00
2013-07-30 12:24:20 +01:00