diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-11-16 11:44:46 -0800 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-01-08 20:10:29 +0000 |
commit | 412aec610559bdb602a0a21ce149ba8ffbb6f983 (patch) | |
tree | ddc1e45080b94fdd791c244ab6f9cada712a52e5 /drivers/regulator/virtual.c | |
parent | 812460a927c1d0dc1fbdbec9aa07de1b04043d83 (diff) |
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>
Diffstat (limited to 'drivers/regulator/virtual.c')
0 files changed, 0 insertions, 0 deletions