mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Teresa Gámez" <t.gamez@phytec.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCHv3 1/5] of: base: Add for_each_node_by_name_from
Date: Wed, 1 Oct 2014 08:13:15 +0200	[thread overview]
Message-ID: <20141001061315.GA4992@pengutronix.de> (raw)
In-Reply-To: <1412075730-5946-1-git-send-email-t.gamez@phytec.de>

On Tue, Sep 30, 2014 at 01:15:26PM +0200, Teresa Gámez wrote:
> Added for_each_node_by_name_from() to be able to
> pass external root node.
> 
> Signed-off-by: Teresa Gámez <t.gamez@phytec.de>

Applied all, thanks

Sascha

> ---
>  include/of.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/of.h b/include/of.h
> index e6993fd..cd2bfe0 100644
> --- a/include/of.h
> +++ b/include/of.h
> @@ -568,6 +568,9 @@ static inline struct device_d *of_find_device_by_node(struct device_node *np)
>  #define for_each_node_by_name(dn, name) \
>  	for (dn = of_find_node_by_name(NULL, name); dn; \
>  	     dn = of_find_node_by_name(dn, name))
> +#define for_each_node_by_name_from(dn, root, name) \
> +	for (dn = of_find_node_by_name(root, name); dn; \
> +	     dn = of_find_node_by_name(dn, name))
>  #define for_each_compatible_node(dn, type, compatible) \
>  	for (dn = of_find_compatible_node(NULL, type, compatible); dn; \
>  	     dn = of_find_compatible_node(dn, type, compatible))
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2014-10-01  6:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-30 11:15 Teresa Gámez
2014-09-30 11:15 ` [PATCHv3 2/5] of: base: Add of_find_node_by_phandle_from Teresa Gámez
2014-09-30 11:15 ` [PATCHv3 3/5] of: base: Add of_parse_phandle_from Teresa Gámez
2014-09-30 11:15 ` [PATCHv3 4/5] of: Added of_set_property_to_child_phandle Teresa Gámez
2014-09-30 11:15 ` [PATCHv3 5/5] commands: add of_display_timings Teresa Gámez
2014-10-01  6:13 ` Sascha Hauer [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=20141001061315.GA4992@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=t.gamez@phytec.de \
    /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