From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 3/5] of: introduce of_parse_phandle_with_fixed_args
Date: Mon, 15 Jul 2013 17:06:38 -0600 [thread overview]
Message-ID: <51E4807E.3090505@wwwdotorg.org> (raw)
In-Reply-To: <51E44688.3050805@cogentembedded.com>
On 07/15/2013 12:59 PM, Sergei Shtylyov wrote:
> On 07/15/2013 10:40 PM, Stephen Warren wrote:
>
>> From: Stephen Warren <swarren@nvidia.com>
>
>> This is identical to of_parse_phandle_with_args(), except that the
>> number of argument cells is fixed, rather than being parsed out of the
>> node referenced by each phandle.
>> diff --git a/drivers/of/base.c b/drivers/of/base.c
>> index 23e7073..ad799d9 100644
>> --- a/drivers/of/base.c
>> +++ b/drivers/of/base.c
>> @@ -1106,7 +1106,8 @@ EXPORT_SYMBOL(of_parse_phandle);
>>
>> static int __of_parse_phandle_with_args(const struct device_node *np,
>> const char *list_name,
>> - const char *cells_name, int index,
>> + const char *cells_name,
>> + int cells_count, int index,
>
> The correct grammar would be 'cell_name' and 'cell_count' I think.
I guess I can see the argument for cell_count, but "cells_name" is named
based on the DT property named "gpio-cells", so "cells" seems correct
here (and is a pre-existing issue anyway).
I'll fix up cell_count and the brace issue locally, but hold off reposting.
WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Sergei Shtylyov
<sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
Cc: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Shiraz Hashim <shiraz.hashim-qxv4g6HH51o@public.gmane.org>,
Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Haojian Zhuang
<haojian.zhuang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Jingchang Lu <b35083-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH V2 3/5] of: introduce of_parse_phandle_with_fixed_args
Date: Mon, 15 Jul 2013 17:06:38 -0600 [thread overview]
Message-ID: <51E4807E.3090505@wwwdotorg.org> (raw)
In-Reply-To: <51E44688.3050805-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
On 07/15/2013 12:59 PM, Sergei Shtylyov wrote:
> On 07/15/2013 10:40 PM, Stephen Warren wrote:
>
>> From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
>> This is identical to of_parse_phandle_with_args(), except that the
>> number of argument cells is fixed, rather than being parsed out of the
>> node referenced by each phandle.
>> diff --git a/drivers/of/base.c b/drivers/of/base.c
>> index 23e7073..ad799d9 100644
>> --- a/drivers/of/base.c
>> +++ b/drivers/of/base.c
>> @@ -1106,7 +1106,8 @@ EXPORT_SYMBOL(of_parse_phandle);
>>
>> static int __of_parse_phandle_with_args(const struct device_node *np,
>> const char *list_name,
>> - const char *cells_name, int index,
>> + const char *cells_name,
>> + int cells_count, int index,
>
> The correct grammar would be 'cell_name' and 'cell_count' I think.
I guess I can see the argument for cell_count, but "cells_name" is named
based on the DT property named "gpio-cells", so "cells" seems correct
here (and is a pre-existing issue anyway).
I'll fix up cell_count and the brace issue locally, but hold off reposting.
next prev parent reply other threads:[~2013-07-15 23:06 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-15 18:40 [PATCH V2 1/5] gpio: clean up gpio-ranges documentation Stephen Warren
2013-07-15 18:40 ` Stephen Warren
2013-07-15 18:40 ` [PATCH V2 2/5] of: move documentation of of_parse_phandle_with_args Stephen Warren
2013-07-15 18:40 ` Stephen Warren
2013-07-15 18:40 ` [PATCH V2 3/5] of: introduce of_parse_phandle_with_fixed_args Stephen Warren
2013-07-15 18:40 ` Stephen Warren
2013-07-15 18:59 ` Sergei Shtylyov
2013-07-15 18:59 ` Sergei Shtylyov
2013-07-15 23:06 ` Stephen Warren [this message]
2013-07-15 23:06 ` Stephen Warren
2013-07-15 18:40 ` [PATCH V2 4/5] gpio: implement gpio-ranges binding document fix Stephen Warren
2013-07-15 18:40 ` Stephen Warren
2013-07-15 18:40 ` [PATCH V2 5/5] ARM: remove #gpio-ranges-cells property Stephen Warren
2013-07-15 18:40 ` Stephen Warren
2013-07-15 19:34 ` Rob Herring
2013-07-15 19:34 ` Rob Herring
2013-07-15 23:02 ` Stephen Warren
2013-07-15 23:02 ` Stephen Warren
2013-07-16 23:30 ` Stephen Warren
2013-07-16 23:30 ` Stephen Warren
2013-07-17 1:50 ` Rob Herring
2013-07-17 1:50 ` Rob Herring
2013-07-17 2:58 ` Stephen Warren
2013-07-17 2:58 ` Stephen Warren
2013-07-18 1:35 ` Laurent Pinchart
2013-07-18 1:35 ` Laurent Pinchart
2013-07-22 22:31 ` [PATCH V2 1/5] gpio: clean up gpio-ranges documentation Linus Walleij
2013-07-22 22:31 ` Linus Walleij
2013-07-23 16:14 ` Stephen Warren
2013-07-23 16:14 ` Stephen Warren
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=51E4807E.3090505@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.