regulator: When constraining modes fall back to higher power modes
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 29 Mar 2011 21:29:12 +0000 (06:29 +0900)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:35 +0000 (10:34 +0100)
commit2c6082341d1896218ca974cc2bb6876e36fcba5c
treef5ca00b3402eb36a0581c4481787ede5a4be5c72
parentdc7acbb2518f250050179c8581a972df3b6a24f1
regulator: When constraining modes fall back to higher power modes

If a mode requested by a consumer is not allowed by constraints
automatically fall back to a higher power mode if possible. This
ensures that consumers get at least the output they requested while
allowing machine drivers to transparently limit lower power modes
if required.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c