summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@sonymobile.com>2015-01-29 16:22:57 -0800
committerMark Brown <broonie@kernel.org>2015-01-30 13:39:56 +0100
commit00cea31f0f0f74ea9d30190e9a7cedb6a29727a9 (patch)
treebef5c3292c5f6784fffe0f95e4412836cded7798 /drivers
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
downloadlinux-stable-00cea31f0f0f74ea9d30190e9a7cedb6a29727a9.tar.gz
linux-stable-00cea31f0f0f74ea9d30190e9a7cedb6a29727a9.tar.bz2
linux-stable-00cea31f0f0f74ea9d30190e9a7cedb6a29727a9.zip
regulator: qcom-rpm: Make it possible to specify supply
Make it possible to specify the supply of a regulator, through the vin-supply property in dt. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/qcom_rpm-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c
index 8364ff331a81..10e26236eeb1 100644
--- a/drivers/regulator/qcom_rpm-regulator.c
+++ b/drivers/regulator/qcom_rpm-regulator.c
@@ -674,6 +674,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
vreg->desc.owner = THIS_MODULE;
vreg->desc.type = REGULATOR_VOLTAGE;
vreg->desc.name = pdev->dev.of_node->name;
+ vreg->desc.supply_name = "vin";
vreg->rpm = dev_get_drvdata(pdev->dev.parent);
if (!vreg->rpm) {