diff options
author | Graeme Gregory <gg@slimlogic.co.uk> | 2012-08-28 07:47:37 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-23 14:41:44 -0400 |
commit | 190ef1a6e1e493340281d10a9dbda2eac205884c (patch) | |
tree | a2935d53fb975d198d2e5a50bd59d22fe811fbbd /drivers/mfd/palmas.c | |
parent | 8664fade0d235eeed2f2cfdeb10d3f243ec01e4f (diff) |
mfd: palmas: Add pdata/data for rest of children
Add the platform data and data structures for children that shall be
added by a future set of commits.
Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/palmas.c')
-rw-r--r-- | drivers/mfd/palmas.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index 942d1d3813a5..7c1a1942d334 100644 --- a/drivers/mfd/palmas.c +++ b/drivers/mfd/palmas.c | |||
@@ -389,6 +389,19 @@ static int __devinit palmas_i2c_probe(struct i2c_client *i2c, | |||
389 | children[PALMAS_PMIC_ID].platform_data = pdata->pmic_pdata; | 389 | children[PALMAS_PMIC_ID].platform_data = pdata->pmic_pdata; |
390 | children[PALMAS_PMIC_ID].pdata_size = sizeof(*pdata->pmic_pdata); | 390 | children[PALMAS_PMIC_ID].pdata_size = sizeof(*pdata->pmic_pdata); |
391 | 391 | ||
392 | children[PALMAS_GPADC_ID].platform_data = pdata->gpadc_pdata; | ||
393 | children[PALMAS_GPADC_ID].pdata_size = sizeof(*pdata->gpadc_pdata); | ||
394 | |||
395 | children[PALMAS_RESOURCE_ID].platform_data = pdata->resource_pdata; | ||
396 | children[PALMAS_RESOURCE_ID].pdata_size = | ||
397 | sizeof(*pdata->resource_pdata); | ||
398 | |||
399 | children[PALMAS_USB_ID].platform_data = pdata->usb_pdata; | ||
400 | children[PALMAS_USB_ID].pdata_size = sizeof(*pdata->usb_pdata); | ||
401 | |||
402 | children[PALMAS_CLK_ID].platform_data = pdata->clk_pdata; | ||
403 | children[PALMAS_CLK_ID].pdata_size = sizeof(*pdata->clk_pdata); | ||
404 | |||
392 | ret = mfd_add_devices(palmas->dev, -1, | 405 | ret = mfd_add_devices(palmas->dev, -1, |
393 | children, ARRAY_SIZE(palmas_children), | 406 | children, ARRAY_SIZE(palmas_children), |
394 | NULL, regmap_irq_chip_get_base(palmas->irq_data), | 407 | NULL, regmap_irq_chip_get_base(palmas->irq_data), |