]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Assume regulators are enabled if they don't report anything
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 11 Feb 2010 17:22:45 +0000 (17:22 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 3 Mar 2010 14:49:26 +0000 (14:49 +0000)
commit77779bdc577f50b7d8ecedec355f1a05535318cc
treee58dc062e3943bbc209eb65e6484010f99db6dc2
parente58fb4abf9c03b1ad1ed0c53fda3f61de0b81609
regulator: Assume regulators are enabled if they don't report anything

If a regulator driver does not provide a way to query if the driver is
enabled then assume that it is enabled.  This is very likely to reflect
the actual state is more useful for callers than reporting an error.

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