regulator: of: Add regulator desc param to of_get_regulator_init_data()
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Mon, 10 Nov 2014 13:43:53 +0000 (14:43 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Nov 2014 18:58:14 +0000 (18:58 +0000)
commit072e78b12bf5182a3e2e460388214a291023ef1c
treedea7a9970709db752d8b998adcc5615e844ddb87
parent87e1e0f29f703e91c54e81f05d831432ec659dde
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>
27 files changed:
drivers/regulator/88pm8607.c
drivers/regulator/anatop-regulator.c
drivers/regulator/arizona-ldo1.c
drivers/regulator/arizona-micsupp.c
drivers/regulator/da9052-regulator.c
drivers/regulator/da9210-regulator.c
drivers/regulator/fan53555.c
drivers/regulator/fixed.c
drivers/regulator/gpio-regulator.c
drivers/regulator/max8952.c
drivers/regulator/max8973-regulator.c
drivers/regulator/max8997.c
drivers/regulator/max8998.c
drivers/regulator/mc13xxx-regulator-core.c
drivers/regulator/of_regulator.c
drivers/regulator/pwm-regulator.c
drivers/regulator/qcom_rpm-regulator.c
drivers/regulator/s5m8767.c
drivers/regulator/sky81452-regulator.c
drivers/regulator/stw481x-vmmc.c
drivers/regulator/ti-abb-regulator.c
drivers/regulator/tps51632-regulator.c
drivers/regulator/tps62360-regulator.c
drivers/regulator/tps65218-regulator.c
drivers/regulator/twl-regulator.c
drivers/regulator/vexpress.c
include/linux/regulator/of_regulator.h