public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: boris.brezillon@free-electrons•com (Boris BREZILLON)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH v4 6/9] regulator: AXP20x: Add support for regulators subsystem
Date: Thu, 15 May 2014 20:03:06 +0200	[thread overview]
Message-ID: <5375015A.10701@free-electrons.com> (raw)
In-Reply-To: <1397209093-10077-7-git-send-email-carlo@caione.org>

Hello Carlo,

On 11/04/2014 11:38, Carlo Caione wrote:
> AXP202 and AXP209 come with two synchronous step-down DC-DCs and five
> LDOs. This patch introduces basic support for those regulators.
>
> Signed-off-by: Carlo Caione <carlo@caione•org>
> ---
>  drivers/regulator/Kconfig            |   7 +
>  drivers/regulator/Makefile           |   1 +
[...]
> +	if (!np)
> +		return 0;
> +
> +	regulators = of_find_node_by_name(np, "regulators");

I know I'm late, and this patch has already been applied, but shouldn't
we use of_get_child_by_name instead of of_find_node_by_name.
This might lead to wrong regulators node parsing if other regulators are
defined in the DT after the axp20x node, because, AFAIK, this function
searches for DT nodes defined after the specified np node, but not
necessarely children of the np node.

Best Regards,

Boris

-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  parent reply	other threads:[~2014-05-15 18:03 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11  9:38 [PATCH v4 0/9] mfd: AXP20x: Add support for AXP202 and AXP209 Carlo Caione
2014-04-11  9:38 ` [PATCH v4 1/9] mfd: AXP20x: Add mfd driver for AXP20x PMIC Carlo Caione
2014-04-11 11:25   ` Arnd Bergmann
2014-04-11 12:03     ` [linux-sunxi] " Carlo Caione
2014-04-11 12:09     ` Mark Brown
2014-04-11 13:16       ` Arnd Bergmann
2014-04-16 15:43   ` Lee Jones
2014-04-16 15:44     ` Lee Jones
2014-04-11  9:38 ` [PATCH v4 2/9] dt-bindings: add vendor-prefix for X-Powers Carlo Caione
2014-04-11  9:38 ` [PATCH v4 3/9] mfd: AXP20x: Add bindings documentation Carlo Caione
2014-04-11  9:38 ` [PATCH v4 4/9] input: misc: Add driver for AXP20x Power Enable Key Carlo Caione
2014-04-13  8:17   ` Dmitry Torokhov
2014-04-17 12:07     ` [linux-sunxi] " Carlo Caione
2014-04-11  9:38 ` [PATCH v4 5/9] input: misc: Add ABI docs for AXP20x PEK Carlo Caione
2014-04-11  9:38 ` [PATCH v4 6/9] regulator: AXP20x: Add support for regulators subsystem Carlo Caione
2014-04-11 12:23   ` Mark Brown
2014-04-11 12:29     ` [linux-sunxi] " Carlo Caione
2014-05-15 18:03   ` Boris BREZILLON [this message]
2014-05-15 18:18     ` Mark Brown
2014-05-16  7:40     ` [linux-sunxi] " Carlo Caione
2014-04-11  9:38 ` [PATCH v4 7/9] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards Carlo Caione
2014-04-11 12:29   ` Mark Brown
2014-04-11 13:04     ` Carlo Caione
2014-04-11 16:18       ` Mark Brown
2014-04-17 10:06         ` Carlo Caione
2014-04-18 15:15           ` Mark Brown
2014-04-23 20:25             ` Carlo Caione
2014-04-24 13:30               ` Mark Brown
2014-04-24 16:35                 ` Charles Keepax
2014-04-24 16:58                   ` Charles Keepax
2014-04-24 17:12                     ` Mark Brown
2014-04-14  9:52   ` Maxime Ripard
2014-04-14 10:02     ` [linux-sunxi] " Carlo Caione
2014-04-14 10:20       ` Hans de Goede
2014-04-14 11:16         ` Mark Brown
2014-04-11  9:38 ` [PATCH v4 8/9] ARM: sunxi: Add AXP20x support in defconfig Carlo Caione
2014-04-11  9:38 ` [PATCH v4 9/9] ARM: sunxi: Add AXP20x support multi_v7_defconfig Carlo Caione

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=5375015A.10701@free-electrons.com \
    --to=boris.brezillon@free-electrons$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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