From: grant.likely@secretlab.ca (Grant Likely)
To: linux-arm-kernel@lists.infradead.org
Subject: [patch 1/2] Add dt_compat field to struct gpio_chip
Date: Thu, 7 Apr 2011 10:17:04 -0700 [thread overview]
Message-ID: <20110407171704.GC2455@angua.secretlab.ca> (raw)
In-Reply-To: <20110407163930.GB17498@dandreoli.com>
On Thu, Apr 07, 2011 at 06:39:30PM +0200, Domenico Andreoli wrote:
> From: Domenico Andreoli <cavokz@gmail.com>
>
> This new field allows easy creation of GPIO chips in base of struct arrays.
>
> Signed-off-by: Domenico Andreoli <cavokz@gmail.com>
>
> ---
> drivers/of/gpio.c | 3 +++
> include/asm-generic/gpio.h | 1 +
> 2 files changed, 4 insertions(+)
>
> Index: b/drivers/of/gpio.c
> ===================================================================
> --- a/drivers/of/gpio.c 2011-04-07 18:19:20.000000000 +0200
> +++ b/drivers/of/gpio.c 2011-04-07 18:20:31.000000000 +0200
> @@ -212,6 +212,9 @@
>
> void of_gpiochip_add(struct gpio_chip *chip)
> {
> + if ((!chip->of_node) && (chip->dt_compat))
> + chip->of_node = of_find_compatible_node(NULL, NULL, chip->dt_compat);
> +
Hi Domenico,
Thanks for looking at this.
However, I think there is a better way to solve this problem,
next prev parent reply other threads:[~2011-04-07 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20110407163322.465935232@gmail.com>
2011-04-07 16:39 ` [patch 1/2] Add dt_compat field to struct gpio_chip Domenico Andreoli
2011-04-07 17:17 ` Grant Likely [this message]
2011-04-07 20:41 ` Domenico Andreoli
2011-04-08 0:17 ` Grant Likely
2011-04-07 16:39 ` [patch 2/2] Add GPIO DT support to s3c24xx Domenico Andreoli
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=20110407171704.GC2455@angua.secretlab.ca \
--to=grant.likely@secretlab.ca \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).