diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-09-20 12:33:11 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-09-20 14:32:23 +0200 |
commit | 005d5bca70151c7ed0acbd0ba873a8aef7f231cb (patch) | |
tree | fb750bbb81ff7f153a478e05ce83bae8854538ac /drivers/regulator/stpmic1_regulator.c | |
parent | 2a2012d03d0487fcf3f548b382b8fa455c6a27bb (diff) | |
download | barebox-005d5bca70151c7ed0acbd0ba873a8aef7f231cb.tar.gz barebox-005d5bca70151c7ed0acbd0ba873a8aef7f231cb.tar.xz |
regulator: stpmic1: add .get_voltage_sel
To get the current voltage from the regulators the .get_voltage_sel
callback is needed. Initialize it to the correct function.
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20230920103316.2758383-7-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/regulator/stpmic1_regulator.c')
-rw-r--r-- | drivers/regulator/stpmic1_regulator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c index c8b56e3a1a..ef8cc7f145 100644 --- a/drivers/regulator/stpmic1_regulator.c +++ b/drivers/regulator/stpmic1_regulator.c @@ -126,6 +126,7 @@ static const struct regulator_ops stpmic1_ldo_ops = { .is_enabled = regulator_is_enabled_regmap, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, + .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_sel = regulator_set_voltage_sel_regmap, }; @@ -135,6 +136,7 @@ static const struct regulator_ops stpmic1_ldo3_ops = { .is_enabled = regulator_is_enabled_regmap, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, + .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_sel = regulator_set_voltage_sel_regmap, }; @@ -150,6 +152,7 @@ static const struct regulator_ops stpmic1_buck_ops = { .is_enabled = regulator_is_enabled_regmap, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, + .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_sel = regulator_set_voltage_sel_regmap, }; |