summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/qcom-rpmh-regulator.c
diff options
context:
space:
mode:
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>2020-05-08 17:43:36 +0200
committerMark Brown <broonie@kernel.org>2020-05-08 19:18:13 +0200
commit60ab7f4153b6af461c90d572c31104086b44639f (patch)
tree708a41e4f1a7042c5cf23e7c565afa9fc6bdf72a /drivers/regulator/qcom-rpmh-regulator.c
parentpower: supply: bd70528: rename linear_range to avoid collision (diff)
downloadlinux-60ab7f4153b6af461c90d572c31104086b44639f.tar.xz
linux-60ab7f4153b6af461c90d572c31104086b44639f.zip
regulator: use linear_ranges helper
Change the regulator helpers to use common linear_ranges code. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Reviewed-by: Mark Brown <broonie@kernel.org> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Link: https://lore.kernel.org/r/64f01d5e381b8631a271616b7790f9d5640974fb.1588944082.git.matti.vaittinen@fi.rohmeurope.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/qcom-rpmh-regulator.c')
-rw-r--r--drivers/regulator/qcom-rpmh-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
index c86ad40015ce..953c7fba8d9d 100644
--- a/drivers/regulator/qcom-rpmh-regulator.c
+++ b/drivers/regulator/qcom-rpmh-regulator.c
@@ -86,7 +86,7 @@ enum rpmh_regulator_type {
struct rpmh_vreg_hw_data {
enum rpmh_regulator_type regulator_type;
const struct regulator_ops *ops;
- const struct regulator_linear_range voltage_range;
+ const struct linear_range voltage_range;
int n_voltages;
int hpm_min_load_uA;
const int *pmic_mode_map;