diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-11-16 22:44:46 +0300 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-01-08 23:10:29 +0300 |
commit | 412aec610559bdb602a0a21ce149ba8ffbb6f983 (patch) | |
tree | ddc1e45080b94fdd791c244ab6f9cada712a52e5 /fs/binfmt_aout.c | |
parent | 812460a927c1d0dc1fbdbec9aa07de1b04043d83 (diff) | |
download | linux-412aec610559bdb602a0a21ce149ba8ffbb6f983.tar.xz |
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 'fs/binfmt_aout.c')
0 files changed, 0 insertions, 0 deletions