diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-03-16 15:36:34 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-03-31 04:56:29 -0400 |
commit | ca7255614e0861e36480103f4a402a115803d7b5 (patch) | |
tree | bf66ae726a640b95841578de070a855e7744840e /include | |
parent | 50f075963f127d713ff0c30359baefc0f89d9ae2 (diff) |
regulator: Support disabling of unused regulators by machines
At present it is not possible for machine constraints to disable
regulators which have been left on when the system starts, for example
as a result of fixed default configurations in hardware. This means that
power may be wasted by these regulators if they are not in use.
Provide intial support for this with a late_initcall which will disable
any unused regulators if the machine has enabled this feature by calling
regulator_has_full_constraints(). If this has not been called then print
a warning to encourage users to fully specify their constraints so that
we can change this to be the default behaviour in future.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regulator/machine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index 5de7aa3b02a6..bac64fa390f2 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h | |||
@@ -166,4 +166,6 @@ struct regulator_init_data { | |||
166 | 166 | ||
167 | int regulator_suspend_prepare(suspend_state_t state); | 167 | int regulator_suspend_prepare(suspend_state_t state); |
168 | 168 | ||
169 | void regulator_has_full_constraints(void); | ||
170 | |||
169 | #endif | 171 | #endif |