mfd: Fetch cell pointer from platform_device->mfd_cell
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 7 Apr 2011 22:43:01 +0000 (00:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 12 Apr 2011 09:13:00 +0000 (11:13 +0200)
commite710d7d5a9cab1041b7a3cf9e655b75d92786857
tree916fc4d0e3e42e9fbd0e9051fe19c5bb082f4e8f
parenta6360dd37e1a144ed11e6548371bade559a1e4df
mfd: Fetch cell pointer from platform_device->mfd_cell

In order for MFD drivers to fetch their cell pointer but also their
platform data one, an mfd cell pointer is added to the platform_device
structure.
That allows all MFD sub devices drivers to be MFD agnostic, unless
they really need to access their MFD cell data. Most of them don't,
especially the ones for IPs used by both MFD and non MFD SoCs.

Cc: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Greg KH <gregkh@suse.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/base/platform.c
drivers/mfd/mfd-core.c
include/linux/mfd/core.h
include/linux/platform_device.h