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-10-14 15:21:33 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-09-23 21:08:29 -07:00
2012-11-28 11:50:34 -08:00
2012-07-21 21:48:39 -07:00
2012-07-21 21:48:38 -07:00
2012-07-21 21:48:39 -07:00
2012-09-23 21:08:29 -07:00
2012-07-21 21:48:39 -07:00
2012-10-10 15:25:56 +02:00
2012-09-23 21:08:30 -07:00
2012-12-05 10:55:54 -08:00
2012-11-28 11:50:34 -08:00
2012-09-23 21:08:33 -07:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:57 +02:00
2012-09-23 21:08:30 -07:00
2012-10-10 15:25:56 +02:00
2012-09-23 21:08:30 -07:00
2012-10-10 15:25:56 +02:00
2012-11-05 21:54:40 +01:00
2012-07-21 21:48:40 -07:00
2012-10-10 15:25:56 +02:00
2012-07-21 21:48:39 -07:00
2012-12-11 13:13:55 -08:00
2012-12-11 13:13:55 -08:00
2012-12-05 10:55:55 -08:00
2012-11-28 11:50:34 -08:00
2012-09-23 21:08:31 -07:00
2012-07-21 21:48:39 -07:00
2012-12-22 02:16:40 -08:00
2012-10-10 15:25:56 +02:00
2012-09-23 21:08:31 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:49:40 -08:00
2012-09-23 21:08:31 -07:00
2012-12-11 13:13:55 -08:00
2012-03-27 20:06:02 +02:00
2012-09-23 21:08:31 -07:00
2012-07-21 21:48:39 -07:00
2012-07-21 21:48:40 -07:00
2013-02-13 10:11:53 +00:00
2012-11-28 11:50:34 -08:00
2012-12-19 22:17:02 +01:00
2012-12-19 22:16:59 +01:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-12-05 10:55:54 -08:00
2012-12-19 22:17:02 +01:00
2012-07-27 13:59:22 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-12-13 10:59:11 -08:00
2012-10-10 15:25:56 +02:00
2012-07-21 21:48:40 -07:00
2012-11-28 11:50:34 -08:00
2012-12-21 17:59:30 -08:00
2012-07-21 21:48:40 -07:00
2012-01-05 08:19:35 -08:00
2012-07-21 21:48:40 -07:00
2012-11-28 11:50:34 -08:00
2012-07-21 21:48:40 -07:00
2012-07-21 21:48:38 -07:00
2012-07-21 21:48:40 -07:00
2012-07-21 21:48:40 -07:00
2012-07-21 21:48:38 -07:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-09-23 21:08:31 -07:00
2012-09-23 21:08:31 -07:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-12-13 10:59:11 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2012-09-23 21:08:32 -07:00
2012-07-21 21:48:38 -07:00
2012-10-10 15:25:56 +02:00
2012-07-21 21:48:37 -07:00
2012-10-10 15:25:57 +02:00
2012-11-28 11:50:34 -08:00
2012-09-23 21:08:36 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-07-21 21:48:41 -07:00
2012-11-28 11:50:34 -08:00
2012-09-23 21:08:29 -07:00
2012-05-30 07:55:38 +02:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2012-11-28 11:50:34 -08:00
2012-07-21 21:48:43 -07:00
2012-07-21 21:48:43 -07:00
2012-10-10 15:25:56 +02:00
2012-11-28 11:50:34 -08:00
2012-07-21 21:48:42 -07:00
2012-07-21 21:48:42 -07:00
2012-12-16 18:21:33 -08:00
2012-11-28 11:50:34 -08:00
2013-01-09 21:47:22 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-07-21 21:48:43 -07:00
2012-11-05 21:54:40 +01:00
2012-12-19 22:17:00 +01:00
2012-12-19 22:17:00 +01:00
2012-11-28 11:50:34 -08:00
2012-11-05 21:54:40 +01:00
2012-11-05 21:54:40 +01:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:57 +02:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00