linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Larsson <andreas@gaisler.com>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: linux-kernel@vger.kernel.org,
	devicetree-discuss@lists.ozlabs.org,
	Linus Walleij <linus.walleij@linaro.org>,
	Rob Herring <rob.herring@calxeda.com>
Subject: Re: [PATCH v3 5/5] gpio: Make of_count_named_gpios() use new of_count_phandle_with_args()
Date: Wed, 13 Feb 2013 11:00:10 +0100	[thread overview]
Message-ID: <511B642A.9000004@gaisler.com> (raw)
In-Reply-To: <1360710401-16757-6-git-send-email-grant.likely@secretlab.ca>

On 2013-02-13 00:06, Grant Likely wrote:
> This patch replaces the horribly coded of_count_named_gpios() with a
> call to of_count_phandle_with_args() which is far more efficient. This
> also changes the return value of of_gpio_count() & of_gpio_named_count()
> from 'unsigned int' to 'int' so that it can return an error code. All
> the users of that function are fixed up to correctly handle a negative
> return value.
>
> v2: Split GPIO portion into a separate patch
>
> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Rob Herring <rob.herring@calxeda.com>
> Cc: Andreas Larsson <andreas@gaisler.com>

For gpiolib-of.c, of_gpio.h and spi.c:
Tested-by: Andreas Larsson <andreas@gaisler.com>

Cheers,
Andreas Larsson


      reply	other threads:[~2013-02-13 10:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12 23:06 [PATCH v3 0/5] of: Add helper for counting phandle refernces Grant Likely
2013-02-12 23:06 ` [PATCH v3 1/5] of/selftest: Fix GPIOs selftest to cover the 7th case Grant Likely
2013-02-12 23:06 ` [PATCH v3 2/5] of/selftest: Use selftest() macro throughout Grant Likely
2013-02-12 23:06 ` [PATCH v3 3/5] of/base: Clean up exit paths for of_parse_phandle_with_args() Grant Likely
2013-02-12 23:06 ` [PATCH v3 4/5] of: Create function for counting number of phandles in a property Grant Likely
2013-02-13  9:57   ` Andreas Larsson
2013-02-12 23:06 ` [PATCH v3 5/5] gpio: Make of_count_named_gpios() use new of_count_phandle_with_args() Grant Likely
2013-02-13 10:00   ` Andreas Larsson [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=511B642A.9000004@gaisler.com \
    --to=andreas@gaisler.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rob.herring@calxeda.com \
    /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).