Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1355923

[PATCH V2 1/5] gpio: of: Scan available child node for gpio-hog

From Laxman Dewangan <ldewangan@nvidia.com>
Newsgroups linux.kernel
Subject [PATCH V2 1/5] gpio: of: Scan available child node for gpio-hog
Date 2016-03-11 15:00 +0100
Message-ID <rbvLJ-73L-17@gated-at.bofh.it> (permalink)
References <rbvLI-73L-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Look for child node which are available when iterating for
gpio hog node for request/set GPIO initial configuration
during OF gpio chip registration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>

---
Changes from V1:
- Add Thierey's acks.
---
 drivers/gpio/gpiolib-of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 42a4bb7..f2ba1a4 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -210,7 +210,7 @@ static void of_gpiochip_scan_gpios(struct gpio_chip *chip)
 	enum gpio_lookup_flags lflags;
 	enum gpiod_flags dflags;
 
-	for_each_child_of_node(chip->of_node, np) {
+	for_each_available_child_of_node(chip->of_node, np) {
 		if (!of_property_read_bool(np, "gpio-hog"))
 			continue;
 
-- 
2.1.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH V2 1/5] gpio: of: Scan available child node for gpio-hog Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-11 15:00 +0100
  Re: [PATCH V2 1/5] gpio: of: Scan available child node for gpio-hog Linus Walleij <linus.walleij@linaro.org> - 2016-03-15 15:10 +0100

csiph-web