From: David Brownell Date: Sun, 16 Nov 2008 19:44:46 +0000 (-0800) Subject: regulator: enable/disable refcounting X-Git-Tag: v2.6.29-rc1~44^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412aec610559bdb602a0a21ce149ba8ffbb6f983;p=pandora-kernel.git regulator: enable/disable refcounting Make the framework treat enable/disable call pairs like the and 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 Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed