linux/drivers/regulator
David Brownell cd94b50530 regulator: refcount fixes
Fix some refcounting issues in the regulator framework, supporting
regulator_disable() for regulators that were enabled at boot time
via machine constraints:

 - Update those regulators' usecounts after enabling, so they
   can cleanly be disabled at that level.

 - Remove the problematic per-consumer usecount, so there's
   only one level of enable/disable.

Buggy consumers could notice different bug symptoms.  The main
example would be refcounting bugs; also, any (out-of-tree) users
of the experimental regulator_set_optimum_mode() stuff which
don't call it when they're done using a regulator.

This is a net minor codeshrink.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2009-03-31 09:56:28 +01:00
..
bq24022.c regulator: Allow init data to be supplied for bq24022 2009-03-31 09:56:21 +01:00
core.c regulator: refcount fixes 2009-03-31 09:56:28 +01:00
da903x.c regulator: Pass regulator init data as explict argument when registering 2009-03-31 09:56:21 +01:00
fixed.c regulator: Allow init_data to be passed to fixed voltage regulators 2009-03-31 09:56:21 +01:00
Kconfig regulator: twl4030 regulators 2009-03-31 09:56:25 +01:00
Makefile regulator: twl4030 regulators 2009-03-31 09:56:25 +01:00
pcf50633-regulator.c regulator: Pass regulator init data as explict argument when registering 2009-03-31 09:56:21 +01:00
twl4030-regulator.c twl4030-regulator: list more VAUX4 voltages 2009-03-31 09:56:27 +01:00
virtual.c regulator: Mark attributes table for virtual regulator static 2009-03-31 09:56:22 +01:00
wm8350-regulator.c regulator: Implement list_voltage for WM835x LDOs and DCDCs 2009-03-31 09:56:27 +01:00
wm8400-regulator.c regulator: Implement list_voltage() for WM8400 DCDCs and LDOs 2009-03-31 09:56:26 +01:00