diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2016-06-02 11:23:15 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-06-08 11:59:00 +0100 |
commit | a8a47540ebe32f1733eebc3e5699af580ceaa3f5 (patch) | |
tree | 4146658a82b199546e550914df39eb0d03afd7d1 | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) | |
download | op-kernel-dev-a8a47540ebe32f1733eebc3e5699af580ceaa3f5.zip op-kernel-dev-a8a47540ebe32f1733eebc3e5699af580ceaa3f5.tar.gz |
regulator: qcom_smd: add list_voltage callback
This patch adds support to list_voltage callback, so that consumers
like mmc core, can get information of supported voltage range.
Without this patch there is no way for mmc core to know this voltage range.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org # v4.6
-rw-r--r-- | drivers/regulator/qcom_smd-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 56a17ec..b11b627 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -140,6 +140,7 @@ static const struct regulator_ops rpm_smps_ldo_ops = { .enable = rpm_reg_enable, .disable = rpm_reg_disable, .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, |