regulator: Add helpers for low-level register access
authorTuomas Tynkkynen <ttynkkynen@nvidia.com>
Mon, 21 Jul 2014 15:38:48 +0000 (18:38 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 17:43:48 +0000 (18:43 +0100)
commit04eca28cde52cdf9eb91e127cc358ad79a8ec53b
treecb4507f5e7f2430325312c86332fbe3ce887879b
parent7171511eaec5bf23fb06078f59784a3a0626b38f
regulator: Add helpers for low-level register access

Add helper functions that allow regulator consumers to obtain low-level
details about the regulator hardware, like the voltage selector register
address and such. These details can be useful when configuring hardware
or firmware that want to do low-level access to regulators, with no
involvement from the kernel.

The use-case for Tegra is a voltage-controlled oscillator clocksource
which has control logic to change the supply voltage via I2C to achieve
a desired output clock rate.

Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/power/regulator/consumer.txt
drivers/regulator/core.c
include/linux/regulator/consumer.h