Grant Likely
e80beb27d2
gpio: Make of_count_named_gpios() use new of_count_phandle_with_args()
...
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
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
2013-02-13 10:11:53 +00:00
..
2012-07-05 14:49:13 +02:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-07-12 13:40:13 +02:00
2012-11-28 11:39:59 -08:00
2012-10-07 17:49:05 +09:00
2012-10-27 18:17:30 +02:00
2012-11-28 11:39:59 -08:00
2012-12-16 18:55:20 -08:00
2013-01-03 15:57:16 -08:00
2012-09-01 01:12:01 +02:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:33 -08:00
2012-03-16 11:15:48 -05:00
2012-11-28 11:39:59 -08:00
2012-12-19 22:13:08 +00:00
2011-06-06 10:10:11 -06:00
2012-11-28 11:39:59 -08:00
2011-08-22 09:12:54 +01:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-09-01 01:02:27 +02:00
2012-11-28 11:39:59 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2012-05-21 14:31:53 +01:00
2012-09-11 08:56:39 +02:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:33 -08:00
2011-08-01 04:58:00 -07:00
2012-11-28 11:39:59 -08:00
2013-01-17 12:27:08 +01:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:33 -08:00
2012-12-11 13:13:55 -08:00
2012-12-11 13:13:55 -08:00
2012-12-07 09:16:12 +01:00
2012-12-11 13:13:55 -08:00
2012-11-30 11:12:07 +00:00
2012-12-12 11:51:39 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-03-25 23:57:20 +01:00
2013-01-17 11:53:54 +01:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:33 -08:00
2012-11-18 00:01:27 +01:00
2012-11-28 11:39:33 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:59 -08:00
2012-12-11 13:13:55 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2011-08-22 09:12:55 +01:00
2012-12-16 18:55:20 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2013-01-03 15:57:16 -08:00
2012-12-16 18:55:20 -08:00
2012-11-28 11:39:59 -08:00
2012-01-02 00:26:06 -07:00
2013-01-03 15:57:16 -08:00
2012-11-28 11:39:59 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-30 12:37:36 +01:00
2013-02-13 10:11:53 +00:00
2012-12-11 13:00:56 -08:00
2012-12-19 22:15:14 +00:00
2012-12-16 18:55:20 -08:00