projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91d9942
)
gpio: implement gpio-ranges binding document fix
author
Stephen Warren
<
[email protected]
>
Wed, 14 Aug 2013 21:27:12 +0000
(15:27 -0600)
committer
Grant Likely
<
[email protected]
>
Thu, 29 Aug 2013 20:40:24 +0000
(21:40 +0100)
Use the new of_parse_phandle_with_fixed_args() to implement the
corrected gpio-ranges DT property definition.
Signed-off-by: Stephen Warren <
[email protected]
>
Acked-by: Mark Rutland <
[email protected]
>
Acked-by: Linus Walleij <
[email protected]
>
Signed-off-by: Grant Likely <
[email protected]
>
drivers/gpio/gpiolib-of.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib-of.c
b/drivers/gpio/gpiolib-of.c
index 665f9530c950f96fd4cf54fb70c03edffbcc2ef2..48cda3c9ee94abc832b0fa72c24cb974a37accb0 100644
(file)
--- a/
drivers/gpio/gpiolib-of.c
+++ b/
drivers/gpio/gpiolib-of.c
@@
-194,8
+194,8
@@
static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
return;
for (;; index++) {
- ret = of_parse_phandle_with_
args(np, "gpio-ranges"
,
-
"#gpio-range-cells",
index, &pinspec);
+ ret = of_parse_phandle_with_
fixed_args(np, "gpio-ranges", 3
,
+ index, &pinspec);
if (ret)
break;