linux_dsm_epyc7002/drivers/regulator
David Brownell 412aec6105 regulator: enable/disable refcounting
Make the <linux/regulator.h> framework treat enable/disable call
pairs like the <linux/clk.h> and <linux/interrupt.h> frameworks do:
they're refcounted, so that different parts of a driver don't need
to put work into coordination that frameworks normally handle.
It's a minor object code shrink.

It also makes the regulator_is_disabled() kerneldoc say what it's
actually returning:  return value is not a refcount, and may report
an error (e.g. I/O error from I2C).

It also fixes some minor regulator_put() goofage:  removing unlocked
access to the enable state.  (But still not making regulator put/get
match the refcounting pattern they invoke.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2009-01-08 20:10:29 +00:00
..
bq24022.c regulator: core - Rework machine API to remove string based functions. 2008-10-13 21:51:50 +01:00
core.c regulator: enable/disable refcounting 2009-01-08 20:10:29 +00:00
da903x.c regulator: da903x regulator bug fix 2008-10-30 15:31:35 +00:00
fixed.c regulator: add support for fixed regulators. 2008-07-30 10:10:21 +01:00
Kconfig regulator: Use menuconfig in Kconfig 2008-11-09 14:49:23 +00:00
Makefile da903x: add regulator support for DA9030/DA9034 2008-10-13 21:51:57 +01:00
virtual.c regulator: regulator test harness 2008-07-30 10:10:21 +01:00
wm8350-regulator.c mfd: Support configurable numbers of DCDCs and ISINKs on WM8350 2009-01-04 12:17:42 +01:00
wm8400-regulator.c regulator: Add WM8400 regulator support 2008-10-13 21:51:53 +01:00