All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: qcom-rpm: Make it possible to specify supply
@ 2015-01-30  0:22 ` Bjorn Andersson
  0 siblings, 0 replies; 9+ messages in thread
From: Bjorn Andersson @ 2015-01-30  0:22 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel,
	srinivas.kandagatla

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>
---
 drivers/regulator/qcom_rpm-regulator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c
index e3120bf..00c5cc3 100644
--- a/drivers/regulator/qcom_rpm-regulator.c
+++ b/drivers/regulator/qcom_rpm-regulator.c
@@ -679,6 +679,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) {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-30 15:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30  0:22 [PATCH] regulator: qcom-rpm: Make it possible to specify supply Bjorn Andersson
2015-01-30  0:22 ` Bjorn Andersson
2015-01-30  0:22 ` Bjorn Andersson
2015-01-30  8:57 ` Srinivas Kandagatla
2015-01-30  8:57   ` Srinivas Kandagatla
2015-01-30 12:39   ` Mark Brown
2015-01-30 12:39     ` Mark Brown
2015-01-30 15:46   ` Bjorn Andersson
2015-01-30 15:46     ` Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.