]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.6.5/regulator-qcom_smd-add-list_voltage-callback.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.6.5 / regulator-qcom_smd-add-list_voltage-callback.patch
CommitLineData
ac3656e1
GKH
1From a8a47540ebe32f1733eebc3e5699af580ceaa3f5 Mon Sep 17 00:00:00 2001
2From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
3Date: Thu, 2 Jun 2016 11:23:15 +0100
4Subject: regulator: qcom_smd: add list_voltage callback
5
6From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7
8commit a8a47540ebe32f1733eebc3e5699af580ceaa3f5 upstream.
9
10This patch adds support to list_voltage callback, so that consumers
11like mmc core, can get information of supported voltage range.
12
13Without this patch there is no way for mmc core to know this voltage range.
14
15Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
16Signed-off-by: Mark Brown <broonie@kernel.org>
17Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19---
20 drivers/regulator/qcom_smd-regulator.c | 1 +
21 1 file changed, 1 insertion(+)
22
23--- a/drivers/regulator/qcom_smd-regulator.c
24+++ b/drivers/regulator/qcom_smd-regulator.c
25@@ -140,6 +140,7 @@ static const struct regulator_ops rpm_sm
26 .enable = rpm_reg_enable,
27 .disable = rpm_reg_disable,
28 .is_enabled = rpm_reg_is_enabled,
29+ .list_voltage = regulator_list_voltage_linear_range,
30
31 .get_voltage = rpm_reg_get_voltage,
32 .set_voltage = rpm_reg_set_voltage,