lkml.org 
[lkml]   [2013]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 4/5] of: Create function for counting number of phandles in a property
On 2013-02-13 00:06, Grant Likely wrote:
> This patch creates of_count_phandle_with_args(), a new function for
> counting the number of phandle+argument tuples in a given property. This
> is better than the existing method of parsing each phandle individually
> until parsing fails which is a horribly slow way to do the count.
>
> Tested on ARM using the selftest code.
>
> v3: - Rebased on top of selftest code cleanup patch
> v2: - fix bug where of_parse_phandle_with_args() could behave like _count_.
> - made of_gpio_named_count() into a static inline regardless of CONFIG_OF_GPIO
>
> 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>

Tested-by: Andreas Larsson <andreas@gaisler.com>

Cheers,
Andreas Larsson



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