mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Juha Keski-Saari <ext-juha.1.keski-saari@nokia.com>
Cc: "sameo@linux.intel.com" <sameo@linux.intel.com>,
	"dbrownell@users.sourceforge.net"
	<dbrownell@users.sourceforge.net>,
	"tony@atomide.com" <tony@atomide.com>,
	"broonie@opensource.wolfsonmicro.com" 
	<broonie@opensource.wolfsonmicro.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>,
	"Hunter Adrian (Nokia-D/Helsinki)" <adrian.hunter@nokia.com>,
	"amit.kucheria@verdurent.com" <amit.kucheria@verdurent.com>,
	"Valentin Eduardo (Nokia-D/Helsinki)"
	<eduardo.valentin@nokia.com>,
	"De-Schrijver Peter (Nokia-D/Helsinki)" 
	<Peter.De-Schrijver@nokia.com>,
	"Kristo Tero (Nokia-D/Tampere)" <Tero.Kristo@nokia.com>
Subject: Re: [PATCH 1/1] Add all TWL4030 regulators to Regulator framework
Date: Wed, 18 Nov 2009 09:51:31 -0800	[thread overview]
Message-ID: <20091118175131.GC4458@core.coreip.homeip.net> (raw)
In-Reply-To: <4B03DE9B.40800@nokia.com>

On Wed, Nov 18, 2009 at 01:46:35PM +0200, Juha Keski-Saari wrote:
> This patch adds all the remaining TWL4030 regulators into the implementation,
> also adding VINT* regulators in this way since they can be derived out from
> the TWL
>
> Signed-off-by: Juha Keski-Saari <ext-juha.1.keski-saari@nokia.com>
> ---
>  drivers/mfd/twl4030-core.c            |   30 ++++++++++++++++++++++++++----
>  drivers/regulator/twl4030-regulator.c |   27 +++++++++++++++++----------
>  include/linux/i2c/twl4030.h           |    8 ++++++--
>  3 files changed, 49 insertions(+), 16 deletions(-)
>
> diff --git a/drivers/mfd/twl4030-core.c b/drivers/mfd/twl4030-core.c
> index a1c47ee..0748b43 100644
> --- a/drivers/mfd/twl4030-core.c
> +++ b/drivers/mfd/twl4030-core.c
> @@ -602,13 +602,15 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
>  	}
>
>  	if (twl_has_regulator()) {
> -		/*
> -		child = add_regulator(TWL4030_REG_VPLL1, pdata->vpll1);
> +		child = add_regulator(TWL4030_REG_VDD1, pdata->vdd1);
>  		if (IS_ERR(child))
>  			return PTR_ERR(child);
> -		*/
>
> -		child = add_regulator(TWL4030_REG_VMMC1, pdata->vmmc1);
> +		child = add_regulator(TWL4030_REG_VDD2, pdata->vdd2);
> +		if (IS_ERR(child))
> +			return PTR_ERR(child);
> +
> +		child = add_regulator(TWL4030_REG_VIO, pdata->vio);
>  		if (IS_ERR(child))
>  			return PTR_ERR(child);

Not specifically targeted at this patch - this driver error handling is
severely lacking and leaves bund of devices behind when one of them
fails to be added.

-- 
Dmitry

      parent reply	other threads:[~2009-11-18 17:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18 11:45 [PATCH 0/1] " Juha Keski-Saari
2009-11-18 11:46 ` [PATCH 1/1] " Juha Keski-Saari
2009-11-18 13:39   ` Mark Brown
2009-11-18 14:36     ` Eduardo Valentin
2009-11-18 14:41       ` Mark Brown
2009-11-19  7:04         ` Juha Keski-Saari
2009-11-19  9:24           ` Peter 'p2' De Schrijver
2009-11-19 10:30             ` Mark Brown
2009-11-20 10:06               ` Samuel Ortiz
2009-11-20 10:32                 ` Liam Girdwood
2009-11-20 11:28                   ` Mark Brown
2009-11-20 12:21                     ` Liam Girdwood
2009-11-20 12:36                       ` Mark Brown
2009-11-23 13:26                     ` Juha Keski-Saari
2009-11-18 17:51   ` Dmitry Torokhov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091118175131.GC4458@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=Peter.De-Schrijver@nokia.com \
    --cc=Tero.Kristo@nokia.com \
    --cc=adrian.hunter@nokia.com \
    --cc=amit.kucheria@verdurent.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=dbrownell@users.sourceforge.net \
    --cc=eduardo.valentin@nokia.com \
    --cc=ext-juha.1.keski-saari@nokia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=sameo@linux.intel.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome