linux-kernel-test/include/linux/regulator
Mark Brown 5ffbd136e6 regulator: Add regulator_get_exclusive() API
Some consumers require complete control of the regulator and can't
tolerate sharing it with other consumers, most commonly because they need
to have the regulator actually disabled so can't have other consumers
forcing it on. This new regulator_get_exclusive() API call allows these
consumers to explicitly request this, documenting the assumptions that
they are making.

In order to simplify coding of such consumers the use count for regulators
they request is forced to match the enabled state of the regulator when
it is requested. This is not possible for consumers which can share
regulators due to the need to keep track of the ownership of use counts.

A new API call is used rather than an additional argument to the existing
regulator_get() in order to avoid merge headaches with driver code in
other trees.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2009-09-22 13:32:38 +01:00
..
bq24022.h regulator: Allow init data to be supplied for bq24022 2009-03-31 09:56:21 +01:00
consumer.h regulator: Add regulator_get_exclusive() API 2009-09-22 13:32:38 +01:00
driver.h regulator: Add regulator_get_exclusive() API 2009-09-22 13:32:38 +01:00
fixed.h regulator: Allow init_data to be passed to fixed voltage regulators 2009-03-31 09:56:21 +01:00
lp3971.h LP3971 PMIC regulator driver (updated and combined version) 2009-06-15 11:18:26 +01:00
machine.h regulator: add initialization macro of regulator supply 2009-09-22 13:32:37 +01:00
max1586.h regulator/max1586: support increased V3 voltage range 2009-06-15 11:18:26 +01:00
userspace-consumer.h regulator: add userspace-consumer driver 2009-06-15 11:18:22 +01:00