Przeglądaj źródła

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>
Bjorn Andersson 10 lat temu
rodzic
commit
00cea31f0f
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      drivers/regulator/qcom_rpm-regulator.c

+ 1 - 0
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) {