diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2016-06-02 13:23:15 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-06-08 13:59:00 +0300 |
commit | a8a47540ebe32f1733eebc3e5699af580ceaa3f5 (patch) | |
tree | 4146658a82b199546e550914df39eb0d03afd7d1 /drivers/regulator | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) | |
download | linux-a8a47540ebe32f1733eebc3e5699af580ceaa3f5.tar.xz |
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
Diffstat (limited to 'drivers/regulator')
-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 56a17ec5b5ef..b11b627a50db 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, |