android_kernel_xiaomi_sm8350/include/linux/regulator
Mark Brown ca7255614e 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>
2009-03-31 09:56:29 +01:00
..
bq24022.h regulator: Allow init data to be supplied for bq24022 2009-03-31 09:56:21 +01:00
consumer.h regulator: enumerate voltages (v2) 2009-03-31 09:56:24 +01:00
driver.h regulator: get_status() grows kerneldoc 2009-03-31 09:56:25 +01:00
fixed.h regulator: Allow init_data to be passed to fixed voltage regulators 2009-03-31 09:56:21 +01:00
machine.h regulator: Support disabling of unused regulators by machines 2009-03-31 09:56:29 +01:00