diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-01-30 03:22:57 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-30 15:39:56 +0300 |
commit | 00cea31f0f0f74ea9d30190e9a7cedb6a29727a9 (patch) | |
tree | bef5c3292c5f6784fffe0f95e4412836cded7798 /drivers/regulator/qcom_rpm-regulator.c | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) | |
download | linux-00cea31f0f0f74ea9d30190e9a7cedb6a29727a9.tar.xz |
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/regulator/qcom_rpm-regulator.c')
-rw-r--r-- | drivers/regulator/qcom_rpm-regulator.c | 1 |
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) { |