]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: If we can't configure optimum mode we're always in the best one
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 14 May 2011 18:19:45 +0000 (11:19 -0700)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:49:09 +0000 (10:49 +0100)
commit33998bdc45eeeb0ac97e4a9339300bf20b4cb8a3
treed4b10f5bd3dab5688f2da50a6c3d029dca4e7056
parentab3a2b486656309fa63a196802746fd9b708b038
regulator: If we can't configure optimum mode we're always in the best one

If either a regulator driver can't tell us what the optimum mode is (or
doesn't have modes in the first place) or the system doesn't allow DRMS
changes then it's more helpful for users to just say that we're in the
optimal mode, even if it's from a selection of one.

Still report errors if the process of picking and setting a mode changes as
this may indicate that we're stuck in a low power mode and unable to deliver
a higher current that the consumer just asked for.

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