From mboxrd@z Thu Jan 1 00:00:00 1970 From: Srinivas Kandagatla Subject: Re: [PATCH] regulator: qcom-rpm: Make it possible to specify supply Date: Fri, 30 Jan 2015 08:57:29 +0000 Message-ID: <54CB4779.6070107@linaro.org> References: <1422577377-31986-1-git-send-email-bjorn.andersson@sonymobile.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-wi0-f182.google.com ([209.85.212.182]:40215 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbbA3I5d (ORCPT ); Fri, 30 Jan 2015 03:57:33 -0500 Received: by mail-wi0-f182.google.com with SMTP id n3so1309654wiv.3 for ; Fri, 30 Jan 2015 00:57:32 -0800 (PST) In-Reply-To: <1422577377-31986-1-git-send-email-bjorn.andersson@sonymobile.com> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Bjorn Andersson , Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Hi Bjorn, Thanks for sending this patch.. I almost forgot about this. Shouldn=92t we update the DT Bindings with this info? Other than that: Acked-by: Srinivas Kandagatla --srini On 30/01/15 00:22, Bjorn Andersson wrote: > Make it possible to specify the supply of a regulator, through the > vin-supply property in dt. > > Signed-off-by: Bjorn Andersson > --- > drivers/regulator/qcom_rpm-regulator.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulat= or/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 =3D THIS_MODULE; > vreg->desc.type =3D REGULATOR_VOLTAGE; > vreg->desc.name =3D pdev->dev.of_node->name; > + vreg->desc.supply_name =3D "vin"; > > vreg->rpm =3D dev_get_drvdata(pdev->dev.parent); > if (!vreg->rpm) { > From mboxrd@z Thu Jan 1 00:00:00 1970 From: srinivas.kandagatla@linaro.org (Srinivas Kandagatla) Date: Fri, 30 Jan 2015 08:57:29 +0000 Subject: [PATCH] regulator: qcom-rpm: Make it possible to specify supply In-Reply-To: <1422577377-31986-1-git-send-email-bjorn.andersson@sonymobile.com> References: <1422577377-31986-1-git-send-email-bjorn.andersson@sonymobile.com> Message-ID: <54CB4779.6070107@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Bjorn, Thanks for sending this patch.. I almost forgot about this. Shouldn?t we update the DT Bindings with this info? Other than that: Acked-by: Srinivas Kandagatla --srini On 30/01/15 00:22, Bjorn Andersson wrote: > Make it possible to specify the supply of a regulator, through the > vin-supply property in dt. > > Signed-off-by: Bjorn Andersson > --- > 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) { >