Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1398116
| From | Pantelis Antoniou <pantelis.antoniou@konsulko.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/3] of: rename *_node_sysfs to _node_post |
| Date | 2016-05-10 16:00 +0200 |
| Message-ID | <rxgmB-3mZ-3@gated-at.bofh.it> (permalink) |
| References | <rwXWG-2q8-13@gated-at.bofh.it> <rwXWG-2q8-29@gated-at.bofh.it> <rx1dU-5zE-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Rob,
> On May 10, 2016, at 00:49 , Rob Herring <robherring2@gmail.com> wrote:
>
> On Mon, May 9, 2016 at 1:11 PM, Pantelis Antoniou
> <pantelis.antoniou@konsulko.com> wrote:
>
> The "why" goes here.
>
OK.
>> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
>> ---
>> drivers/of/base.c | 4 ++--
>> drivers/of/dynamic.c | 10 +++++-----
>> drivers/of/of_private.h | 4 ++--
>> drivers/of/unittest.c | 4 ++--
>> 4 files changed, 11 insertions(+), 11 deletions(-)
>>
>> diff --git a/drivers/of/base.c b/drivers/of/base.c
>> index 9bbca56..20bbc2f 100644
>> --- a/drivers/of/base.c
>> +++ b/drivers/of/base.c
>> @@ -156,7 +156,7 @@ int __of_add_property_sysfs(struct device_node *np, struct property *pp)
>> return rc;
>> }
>>
>> -int __of_attach_node_sysfs(struct device_node *np)
>> +int __of_attach_node_post(struct device_node *np)
>> {
>> const char *name;
>> struct property *pp;
>> @@ -203,7 +203,7 @@ void __init of_core_init(void)
>> return;
>> }
>> for_each_of_allnodes(np)
>> - __of_attach_node_sysfs(np);
>> + __of_attach_node_post(np);
>> mutex_unlock(&of_mutex);
>>
>> /* Symlink in /proc as required by userspace ABI */
>> diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c
>> index 350b1cf..eb31a55 100644
>> --- a/drivers/of/dynamic.c
>> +++ b/drivers/of/dynamic.c
>> @@ -41,7 +41,7 @@ void of_node_put(struct device_node *node)
>> }
>> EXPORT_SYMBOL(of_node_put);
>>
>> -void __of_detach_node_sysfs(struct device_node *np)
>> +void __of_detach_node_post(struct device_node *np)
>> {
>> struct property *pp;
>>
>> @@ -251,7 +251,7 @@ int of_attach_node(struct device_node *np)
>> __of_attach_node(np);
>> raw_spin_unlock_irqrestore(&devtree_lock, flags);
>>
>> - __of_attach_node_sysfs(np);
>> + __of_attach_node_post(np);
>> mutex_unlock(&of_mutex);
>>
>> of_reconfig_notify(OF_RECONFIG_ATTACH_NODE, &rd);
>> @@ -304,7 +304,7 @@ int of_detach_node(struct device_node *np)
>> __of_detach_node(np);
>> raw_spin_unlock_irqrestore(&devtree_lock, flags);
>>
>> - __of_detach_node_sysfs(np);
>> + __of_detach_node_post(np);
>> mutex_unlock(&of_mutex);
>>
>> of_reconfig_notify(OF_RECONFIG_DETACH_NODE, &rd);
>> @@ -628,10 +628,10 @@ static int __of_changeset_entry_apply(struct of_changeset_entry *ce)
>>
>> switch (ce->action) {
>> case OF_RECONFIG_ATTACH_NODE:
>> - __of_attach_node_sysfs(ce->np);
>> + __of_attach_node_post(ce->np);
>> break;
>> case OF_RECONFIG_DETACH_NODE:
>> - __of_detach_node_sysfs(ce->np);
>> + __of_detach_node_post(ce->np);
>> break;
>> case OF_RECONFIG_ADD_PROPERTY:
>> /* ignore duplicate names */
>> diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h
>> index 092cba7..10b0342 100644
>> --- a/drivers/of/of_private.h
>> +++ b/drivers/of/of_private.h
>> @@ -79,9 +79,9 @@ extern void __of_update_property_sysfs(struct device_node *np,
>> struct property *newprop, struct property *oldprop);
>>
>> extern void __of_attach_node(struct device_node *np);
>> -extern int __of_attach_node_sysfs(struct device_node *np);
>> +extern int __of_attach_node_post(struct device_node *np);
>> extern void __of_detach_node(struct device_node *np);
>> -extern void __of_detach_node_sysfs(struct device_node *np);
>> +extern void __of_detach_node_post(struct device_node *np);
>>
>> /* iterators for transactions, used for overlays */
>> /* forward iterator */
>> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
>> index e5a5ec0..7ea3689 100644
>> --- a/drivers/of/unittest.c
>> +++ b/drivers/of/unittest.c
>> @@ -931,7 +931,7 @@ static int attach_node_and_children(struct device_node *np)
>> of_node_clear_flag(np, OF_DETACHED);
>> raw_spin_unlock_irqrestore(&devtree_lock, flags);
>>
>> - __of_attach_node_sysfs(np);
>> + __of_attach_node_post(np);
>> mutex_unlock(&of_mutex);
>>
>> while (child) {
>> @@ -989,7 +989,7 @@ static int __init unittest_data_add(void)
>> if (!of_root) {
>> of_root = unittest_data_node;
>> for_each_of_allnodes(np)
>> - __of_attach_node_sysfs(np);
>> + __of_attach_node_post(np);
>> of_aliases = of_find_node_by_path("/aliases");
>> of_chosen = of_find_node_by_path("/chosen");
>> return 0;
>> --
>> 1.7.12
>>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/3] of: generic infrastructure fixes Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-05-09 20:20 +0200
[PATCH 2/3] of: Support hashtable lookups for phandles Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-05-09 20:20 +0200
Re: [PATCH 2/3] of: Support hashtable lookups for phandles Geert Uytterhoeven <geert@linux-m68k.org> - 2016-05-09 22:40 +0200
Re: [PATCH 2/3] of: Support hashtable lookups for phandles Rob Herring <robherring2@gmail.com> - 2016-05-09 23:20 +0200
Re: [PATCH 2/3] of: Support hashtable lookups for phandles Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-05-10 15:50 +0200
Re: [PATCH 2/3] of: Support hashtable lookups for phandles Rob Herring <robherring2@gmail.com> - 2016-05-10 16:30 +0200
Re: [PATCH 2/3] of: Support hashtable lookups for phandles Rob Herring <robherring2@gmail.com> - 2016-05-09 23:30 +0200
Re: [PATCH 2/3] of: Support hashtable lookups for phandles Pantelis Antoniou <panto@antoniou-consulting.com> - 2016-05-10 16:10 +0200
[PATCH 3/3] of: overlay: Pick up label symbols from overlays. Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-05-09 20:20 +0200
Re: [PATCH 3/3] of: overlay: Pick up label symbols from overlays. Marek Vasut <marex@denx.de> - 2016-05-09 22:40 +0200
Re: [PATCH 3/3] of: overlay: Pick up label symbols from overlays. Rob Herring <robherring2@gmail.com> - 2016-05-09 23:50 +0200
Re: [PATCH 3/3] of: overlay: Pick up label symbols from overlays. Pantelis Antoniou <panto@antoniou-consulting.com> - 2016-05-10 16:10 +0200
Re: [PATCH 3/3] of: overlay: Pick up label symbols from overlays. Rob Herring <robherring2@gmail.com> - 2016-05-10 16:30 +0200
[PATCH 1/3] of: rename *_node_sysfs to _node_post Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-05-09 20:20 +0200
Re: [PATCH 1/3] of: rename *_node_sysfs to _node_post Rob Herring <robherring2@gmail.com> - 2016-05-09 23:50 +0200
Re: [PATCH 1/3] of: rename *_node_sysfs to _node_post Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-05-10 16:00 +0200
csiph-web