diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2014-11-10 08:43:53 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-26 13:58:14 -0500 |
commit | 072e78b12bf5182a3e2e460388214a291023ef1c (patch) | |
tree | dea7a9970709db752d8b998adcc5615e844ddb87 /drivers/regulator/s5m8767.c | |
parent | 87e1e0f29f703e91c54e81f05d831432ec659dde (diff) |
regulator: of: Add regulator desc param to of_get_regulator_init_data()
The of_get_regulator_init_data() function is used to extract the regulator
init_data but information on how to extract certain data is defined in the
static regulator descriptor (e.g: how to map the hardware operating modes).
Add a const struct regulator_desc * parameter to the function signature so
the parsing logic could use the information in the struct regulator_desc.
of_get_regulator_init_data() relies on of_get_regulation_constraints() to
actually extract the init_data so it has to pass the struct regulator_desc
but that is modified on a later patch.
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/s5m8767.c')
-rw-r--r-- | drivers/regulator/s5m8767.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 0ab5cbeeb797..26932fe42b47 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c | |||
@@ -581,7 +581,8 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev, | |||
581 | 581 | ||
582 | rdata->id = i; | 582 | rdata->id = i; |
583 | rdata->initdata = of_get_regulator_init_data( | 583 | rdata->initdata = of_get_regulator_init_data( |
584 | &pdev->dev, reg_np); | 584 | &pdev->dev, reg_np, |
585 | ®ulators[i]); | ||
585 | rdata->reg_node = reg_np; | 586 | rdata->reg_node = reg_np; |
586 | rdata++; | 587 | rdata++; |
587 | rmode->id = i; | 588 | rmode->id = i; |