lkml.org 
[lkml]   [2013]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 5/5] gpio: Make of_count_named_gpios() use new of_count_phandle_with_args()
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



\
 
 \ /
  Last update: 2013-02-13 11:41    [W:0.760 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site