# \[PATCH v3 0/2\] gpio: Add the devm\_fwnode\_get\_index\_gpiod\_from\_child() helper

- From: Boris Brezillon \<hidden\>
- Date: 2017-02-02 13:53:09 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2017/02/8505960
- Thread: https://ratatoskr.run/linux-gpio/2017/02/8505960/t.md

```text
Hello Linus,

Here is the v3 rebased on your ib-gpiod-flags branch.

Thanks,

Boris

---
Changes since v2:
- Rebase on the ib-gpiod-flags

Changes since v1:
- Rename the devm_get_gpiod_from_child() helper into
  devm_fwnode_get_gpiod_from_child()
- Define as a static inline wrapper around
  devm_fwnode_get_gpiod_from_child()

Boris Brezillon (2):
  gpio: Rename devm_get_gpiod_from_child()
  gpio: Add the devm_fwnode_get_index_gpiod_from_child() helper

 drivers/gpio/devres.c                     | 18 +++++++++-------
 drivers/gpio/gpiolib.c                    |  9 ++++----
 drivers/input/keyboard/gpio_keys.c        |  6 ++++--
 drivers/input/keyboard/gpio_keys_polled.c |  8 +++----
 drivers/leds/leds-gpio.c                  |  5 +++--
 drivers/video/fbdev/amba-clcd-nomadik.c   | 16 +++++++-------
 include/linux/gpio/consumer.h             | 35 ++++++++++++++++++++-----------
 7 files changed, 57 insertions(+), 40 deletions(-)

-- 
2.7.4
```
