linux/drivers/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
..
ab3100.c regulator: Voltage count for AB3100 2009-09-17 15:48:24 +02:00
bq24022.c regulator/bq24022: fix bug in is_enabled function 2009-04-28 18:58:08 +01:00
core.c regulator: Add regulator_get_exclusive() API 2009-09-22 13:32:38 +01:00
da903x.c regulator: support list voltage in da903x 2009-09-22 13:32:38 +01:00
fixed.c regulator: Set MODULE_ALIAS for regulator drivers 2009-06-15 11:18:24 +01:00
Kconfig regulator: AB3100 support 2009-09-17 09:47:25 +02:00
lp3971.c regulator: lp3971 - fix driver link error when built-in. 2009-06-15 11:18:26 +01:00
Makefile regulator: AB3100 support 2009-09-17 09:47:25 +02:00
max1586.c regulator/max1586: fix V3 gain calculation integer overflow 2009-06-15 11:18:27 +01:00
mc13783.c regulator: Add Freescale MC13783 driver 2009-09-17 09:47:19 +02:00
pcap-regulator.c regulator: get pcap data from the parent device 2009-09-17 09:47:13 +02:00
pcf50633-regulator.c drivers/regulator/pcf50633-regulator.c: Remove unnecessary semicolons 2009-09-22 13:32:36 +01:00
twl4030-regulator.c regulator: twl4030 VAUX3 supports 3.0V 2009-03-31 11:29:54 +01:00
userspace-consumer.c regulator: build fix for powerpc - renamed show_state 2009-06-15 11:18:23 +01:00
virtual.c regulator: Make virtual consumer a bit more chatty 2009-09-22 13:32:35 +01:00
wm831x-dcdc.c regulator: Add WM831x DC-DC boost convertor support 2009-09-17 09:47:10 +02:00
wm831x-isink.c regulator: Add WM831x ISINK support 2009-09-17 09:47:11 +02:00
wm831x-ldo.c regulator: Add WM831x LDO support 2009-09-17 09:47:09 +02:00
wm8350-regulator.c regulator: add check index of wm8350->pmic.pdev[] 2009-09-22 13:32:35 +01:00
wm8400-regulator.c regulator: remove driver_data direct access of struct device 2009-06-15 11:18:25 +01:00