mfd: Add sharing for cs5535 acpi/pms cells
authorAndres Salomon <dilinger@queued.net>
Fri, 18 Feb 2011 03:07:36 +0000 (19:07 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:41:58 +0000 (10:41 +0100)
commit1310e6d638b302bd9cd064f8de7dcd546bb7f597
tree381e845cded4c75a6a6430db5b2c05da7194fa05
parenta9bbba996302344b1fac7773cf8198f6fee35ac1
mfd: Add sharing for cs5535 acpi/pms cells

This enables sharing of cs5535-mfd cells via the new mfd_shared_* API.
Hooks for enable/disble of resources are added, with refcounting of
resources being automatically handled so that cs5535_mfd_res_enable/disable
are only called when necessary.

Clients of cs5535-mfd (in this case, olpc-xo1.c) are also modified to
use the mfd_shared API.  The platform drivers are also renamed to
olpc-xo1-{pms,acpi}, and resource enabling/disabling is replaced
with mfd_shared API calls.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
arch/x86/platform/olpc/olpc-xo1.c
drivers/mfd/cs5535-mfd.c