mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
5ffbd136e6
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> |
||
---|---|---|
.. | ||
ab3100.c | ||
bq24022.c | ||
core.c | ||
da903x.c | ||
fixed.c | ||
Kconfig | ||
lp3971.c | ||
Makefile | ||
max1586.c | ||
mc13783.c | ||
pcap-regulator.c | ||
pcf50633-regulator.c | ||
twl4030-regulator.c | ||
userspace-consumer.c | ||
virtual.c | ||
wm831x-dcdc.c | ||
wm831x-isink.c | ||
wm831x-ldo.c | ||
wm8350-regulator.c | ||
wm8400-regulator.c |