android_kernel_msm-6.1_noth.../include/linux/regulator
MyungJoo Ham 7a32b589a9 Regulator: add suspend-finish API for regulator core.
The regulator core had suspend-prepare that turns off the regulators
when entering a system-wide suspend. However, it did not have
suspend-finish that pairs with suspend-prepare and the regulator core
has assumed that the regulator devices and their drivers support
autonomous recover at resume.

This patch adds regulator_suspend_finish that pairs with the
previously-existed regulator_suspend_prepare. The function
regulator_suspend_finish turns on the regulators that have always_on set
or positive use_count so that we can reset the regulator states
appropriately at resume.

In regulator_suspend_finish, if has_full_constraints, it disables
unnecessary regulators.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
--
Updates
v3
	comments corrected (Thanks to Igor)
v2
	disable unnecessary regulators (Thanks to Mark)
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2011-03-26 14:15:04 +00:00
..
ab8500.h regulators: Moved define for number of regulators in ab8500 2011-01-12 14:33:02 +00:00
bq24022.h regulator: Allow init data to be supplied for bq24022 2009-03-31 09:56:21 +01:00
consumer.h regulator: Add API to re-apply voltage to hardware 2011-01-12 14:33:05 +00:00
driver.h regulator: Add initial per-regulator debugfs support 2011-01-12 14:33:05 +00:00
fixed.h regulator: Add 'start-up time' to fixed voltage regulators 2010-03-03 14:49:23 +00:00
lp3971.h LP3971 PMIC regulator driver (updated and combined version) 2009-06-15 11:18:26 +01:00
lp3972.h Regulator: LP3972 PMIC regulator driver 2010-10-28 22:40:31 +01:00
machine.h Regulator: add suspend-finish API for regulator core. 2011-03-26 14:15:04 +00:00
max1586.h regulator: fix typos 2009-09-22 13:32:44 +01:00
max8649.h regulator: enable max8649 regulator driver 2010-03-03 14:49:24 +00:00
max8660.h regulator: add driver for MAX8660/8661 2009-12-17 10:27:22 +00:00
max8952.h MAX8952 PMIC Driver Initial Release 2010-10-28 22:40:31 +01:00
tps6507x.h regulator: tps6507x: allow driver to use DEFDCDC{2,3}_HIGH register 2010-07-28 15:09:26 +01:00
userspace-consumer.h regulator: add userspace-consumer driver 2009-06-15 11:18:22 +01:00