Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412109
| From | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH v1 2/3] regulator: qcom_smd: add list_voltage callback |
| Date | 2016-06-02 12:30 +0200 |
| Message-ID | <rFy30-4Jw-29@gated-at.bofh.it> (permalink) |
| References | <rFy2Z-4Jw-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
drivers/regulator/qcom_smd-regulator.c | 1 +
1 file changed, 1 insertion(+)
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,
--
2.8.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH v1 0/3] regulator: qcom_smd: add list_voltage callback support. Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-02 12:30 +0200
[RFC PATCH v1 2/3] regulator: qcom_smd: add list_voltage callback Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-02 12:30 +0200
Re: [RFC PATCH v1 2/3] regulator: qcom_smd: add list_voltage callback Mark Brown <broonie@kernel.org> - 2016-06-03 12:50 +0200
Re: [RFC PATCH v1 2/3] regulator: qcom_smd: add list_voltage callback Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-03 13:30 +0200
csiph-web