From: Mark Brown Date: Fri, 13 Sep 2013 18:50:37 +0000 (+0100) Subject: regulator: core: Provide a dummy regulator with full constraints X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~16^2~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ddfebd3b0d5b65c69492408bb67fd1202104643;p=pandora-kernel.git 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 --- Reading git-diff-tree failed