Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1449965 > unrolled thread

[PATCH 4.6 058/203] regulator: qcom_smd: add list_voltage callback

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-07-25 23:40 +0200
Last post2016-07-25 23:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.6 058/203] regulator: qcom_smd: add list_voltage callback Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-07-25 23:40 +0200

#1449965 — [PATCH 4.6 058/203] regulator: qcom_smd: add list_voltage callback

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-07-25 23:40 +0200
Subject[PATCH 4.6 058/203] regulator: qcom_smd: add list_voltage callback
Message-ID<rYVLt-1mN-41@gated-at.bofh.it>
4.6-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

commit a8a47540ebe32f1733eebc3e5699af580ceaa3f5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/regulator/qcom_smd-regulator.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/regulator/qcom_smd-regulator.c
+++ b/drivers/regulator/qcom_smd-regulator.c
@@ -140,6 +140,7 @@ static const struct regulator_ops rpm_sm
 	.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,

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web