From: Nathan Fontenot <nfont-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
To: Andres Salomon <dilinger-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH 4/4] Move of_node[attach, detach] declarations to linux/of.h
Date: Thu, 19 Nov 2009 14:32:13 -0600 [thread overview]
Message-ID: <4B05AB4D.1080802@austin.ibm.com> (raw)
In-Reply-To: <20091119003517.677a5b02-d8A+jLeiQi/1Xlz9cAVuGNHuzzzSOjJt@public.gmane.org>
Andres Salomon wrote:
>> -/* For updating the device tree at runtime */
>> -extern void of_attach_node(struct device_node *);
>> -extern void of_detach_node(struct device_node *);
>> -
>
> Minor points, but I'd recommend moving the declarations at the same
> time as the definitions. That is, move the of_attach_node declaration
> in patch1 and of_detach_node declaration in patch2.
>
No problem, I'll update the patches to do this.
---
>> ===================================================================
>> --- test-devicetree.orig/include/linux/of.h 2009-11-18
>> 17:34:36.000000000 -0600 +++
>> test-devicetree/include/linux/of.h 2009-11-18
>> 19:26:53.000000000 -0600 @@ -187,4 +187,10 @@ const char *list_name,
>> const char *cells_name, int index, struct device_node **out_node,
>> const void **out_args);
>> +#ifdef CONFIG_OF_DYNAMIC
>> +/* For updating the device tree at runtime */
>> +extern void of_attach_node(struct device_node *);
>> +extern void of_detach_node(struct device_node *);
>> +#endif
>> +
>> #endif /* _LINUX_OF_H */
>
> The trend seems to be a different header file per config option.
> "of_dynamic.h" would be the logic extension of that..
>
Works for me, updated patches coming soon.
-Nathan Fontenot
next prev parent reply other threads:[~2009-11-19 20:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-17 21:04 [PATCH 0/4] Merge OF dynamic patches Nathan Fontenot
[not found] ` <4B030FC2.9070401-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
2009-11-18 2:53 ` [PATCH 1/4] Merge of_attach_node Nathan Fontenot
[not found] ` <4B0361A9.20209-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
2009-11-18 21:44 ` Nathan Fontenot
2009-11-18 2:55 ` [PATCH 2/4] Merge of_detach_node Nathan Fontenot
[not found] ` <4B03620C.2060105-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
2009-11-18 21:45 ` Nathan Fontenot
2009-11-18 2:56 ` [PATCH 3/4] Makefile and Kconfig updates for of_dynamci Nathan Fontenot
[not found] ` <4B036256.9060809-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
2009-11-18 21:46 ` Nathan Fontenot
2009-11-18 2:57 ` [PATCH 4/4] Move of_node[attach,detach] declarations to linux/of.h Nathan Fontenot
[not found] ` <4B03629A.9050503-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
2009-11-18 21:48 ` [PATCH 4/4] Move of_node[attach, detach] " Nathan Fontenot
[not found] ` <4B046B92.3060108-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
2009-11-19 5:35 ` Andres Salomon
[not found] ` <20091119003517.677a5b02-d8A+jLeiQi/1Xlz9cAVuGNHuzzzSOjJt@public.gmane.org>
2009-11-19 20:32 ` Nathan Fontenot [this message]
2009-11-18 10:41 ` [PATCH 0/4] Merge OF dynamic patches Wolfram Sang
[not found] ` <20091118104147.GD5166-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-11-18 20:16 ` Nathan Fontenot
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=4B05AB4D.1080802@austin.ibm.com \
--to=nfont-v7bbcbafuwjmbyb6qlfgeg@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=dilinger-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org \
/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