aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2022-06-04 21:32:59 +0200
committerMark Brown <broonie@kernel.org>2022-06-07 20:38:13 +0100
commitf210f387c8c05ae0bd5312b8b6b85398c20b94f9 (patch)
tree94b6f45192d2cc07ad47256dd7baf26c700400a9 /drivers/regulator
parentregulator: mp5416: remove kernel.h include (diff)
downloadlinux-dev-f210f387c8c05ae0bd5312b8b6b85398c20b94f9.tar.xz
linux-dev-f210f387c8c05ae0bd5312b8b6b85398c20b94f9.zip
regulator: qcom_smd: add get_voltage to MP5496
Add the get_voltage OP to MP5496 ops using the generic rpm_reg_get_voltage. Signed-off-by: Robert Marko <robimarko@gmail.com> Link: https://lore.kernel.org/r/20220604193300.125758-1-robimarko@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/qcom_smd-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c
index 7dff94a2eb7e..a73fbbf2daa8 100644
--- a/drivers/regulator/qcom_smd-regulator.c
+++ b/drivers/regulator/qcom_smd-regulator.c
@@ -205,6 +205,7 @@ static const struct regulator_ops rpm_mp5496_ops = {
.is_enabled = rpm_reg_is_enabled,
.list_voltage = regulator_list_voltage_linear_range,
+ .get_voltage = rpm_reg_get_voltage,
.set_voltage = rpm_reg_set_voltage,
};