mfd: Prepare for separating spi and i2c mc13xxx-core backends
authorMarc Reilly <marc@cpdesign.com.au>
Tue, 1 May 2012 10:26:46 +0000 (12:26 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 1 May 2012 10:35:40 +0000 (12:35 +0200)
commit5006fe546a4eb0393782b818d4e0e2a6b4fa3803
tree3565d39367e75cb7581fb196748e00d95b53c5b5
parent4c394bb1683dbd110314ab37da7bfa6c9a77073d
mfd: Prepare for separating spi and i2c mc13xxx-core backends

This patch abstracts the bus specific operations from the driver core.
Generic init and cleanup is consolidated into mc13xxx_common_*.
spi specific functions are renamed to reflect such.
(The irq member of the mc13xxx struct is no longer redundant, it's used
to store the irq for cleanup time).

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mc13xxx-core.c