summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/intel-lpss.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2015-11-30 16:11:41 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-12-07 02:29:23 +0100
commite15ad2154b6166804fc04487e0398c9aef9e7c97 (patch)
treea9f298c7759691eaf304d43e8ed9efab440cd4b4 /drivers/mfd/intel-lpss.h
parentmfd: core: propagate device properties to sub devices drivers (diff)
downloadlinux-e15ad2154b6166804fc04487e0398c9aef9e7c97.tar.xz
linux-e15ad2154b6166804fc04487e0398c9aef9e7c97.zip
mfd: intel-lpss: Add support for passing device properties
If the boot firmware does not support ACPI we need a way to pass device configuration information to the drivers. The unified device properties API already supports passing platform data via properties so let's take advantage of that and allow probe drivers to pass set of properties to the host controller driver. In order to do that we need to be able to modify the MFD cell corresponding the host controller, so make the core driver to take copy of the cell instead of using it directly. Then we can assign info->pset to the resulting copy of a cell and let the MFD core to assign that to the resulting device. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/mfd/intel-lpss.h')
-rw-r--r--drivers/mfd/intel-lpss.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/intel-lpss.h b/drivers/mfd/intel-lpss.h
index 2c7f8d7c0595..0dcea9eb2d03 100644
--- a/drivers/mfd/intel-lpss.h
+++ b/drivers/mfd/intel-lpss.h
@@ -16,12 +16,14 @@
struct device;
struct resource;
+struct property_set;
struct intel_lpss_platform_info {
struct resource *mem;
int irq;
unsigned long clk_rate;
const char *clk_con_id;
+ struct property_set *pset;
};
int intel_lpss_probe(struct device *dev,