mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
8664fade0d
commit
190ef1a6e1
2 changed files with 185 additions and 0 deletions
|
|
@ -389,6 +389,19 @@ static int __devinit palmas_i2c_probe(struct i2c_client *i2c,
|
|||
children[PALMAS_PMIC_ID].platform_data = pdata->pmic_pdata;
|
||||
children[PALMAS_PMIC_ID].pdata_size = sizeof(*pdata->pmic_pdata);
|
||||
|
||||
children[PALMAS_GPADC_ID].platform_data = pdata->gpadc_pdata;
|
||||
children[PALMAS_GPADC_ID].pdata_size = sizeof(*pdata->gpadc_pdata);
|
||||
|
||||
children[PALMAS_RESOURCE_ID].platform_data = pdata->resource_pdata;
|
||||
children[PALMAS_RESOURCE_ID].pdata_size =
|
||||
sizeof(*pdata->resource_pdata);
|
||||
|
||||
children[PALMAS_USB_ID].platform_data = pdata->usb_pdata;
|
||||
children[PALMAS_USB_ID].pdata_size = sizeof(*pdata->usb_pdata);
|
||||
|
||||
children[PALMAS_CLK_ID].platform_data = pdata->clk_pdata;
|
||||
children[PALMAS_CLK_ID].pdata_size = sizeof(*pdata->clk_pdata);
|
||||
|
||||
ret = mfd_add_devices(palmas->dev, -1,
|
||||
children, ARRAY_SIZE(palmas_children),
|
||||
NULL, regmap_irq_chip_get_base(palmas->irq_data),
|
||||
|
|
|
|||
Loading…
Reference in a new issue