提交 d1279d94 编写于 作者: L Laxman Dewangan 提交者: Linus Walleij

gpio: of: Scan available child node for gpio-hog

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

All it really does is make it possible to set
status = "disabled"; in the hog nodes, and then they will
not be applied.
Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 4dd4dd1d
......@@ -212,7 +212,7 @@ static int of_gpiochip_scan_gpios(struct gpio_chip *chip)
enum gpiod_flags dflags;
int ret;
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册