]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: core: Provide a dummy regulator with full constraints
authorMark Brown <broonie@linaro.org>
Fri, 13 Sep 2013 18:50:37 +0000 (19:50 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:30:25 +0000 (00:30 +0100)
commit4ddfebd3b0d5b65c69492408bb67fd1202104643
tree75f540d31a044399680db0f8a8b756f733b39ffb
parent272b98c6455f00884f0350f775c5342358ebb73f
regulator: core: Provide a dummy regulator with full constraints

When a system has said that it has fully specified constraints for its
regulators it is still possible that some supplies may be missing,
especially if regulator support has been added to a driver after the
board was integrated. We can handle such situations more gracefully by
providing a dummy regulator.

Unless the caller has specifically indicated that the system design may
not include a given regulator by using regulator_get_optional() or that
it needs its interactions to have an effect using regulator_get_exclusive()
provide a dummy regulator if we can't locate a real one.

The kconfig option REGULATOR_DUMMY that provided similar behaviour for all
regulators has been removed, systems that need it should flag that they
have full constraints instead.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/Kconfig
drivers/regulator/core.c