]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94b018b33e60ba29b9d50200c31602c3aaa7ddda
tree916fc4d0e3e42e9fbd0e9051fe19c5bb082f4e8f
parenta49ec2f89ef7d5107cf62938f259cf1ba29f99d3
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