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

- From: Linus Walleij \<hidden\>
- Date: 2017-02-04 20:29:50 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2017/02/8505967
- Thread: https://ratatoskr.run/linux-gpio/2017/02/8505960/t.md

```text
On Thu, Feb 2, 2017 at 2:53 PM, Boris Brezillon
[ref] wrote:

> devm_fwnode_get_gpiod_from_child() currently allows GPIO users to
> request a GPIO that is defined in a child fwnode instead of directly in
> the device fwnode.
> Extend this API by adding the devm_fwnode_get_index_gpiod_from_child()
> helper which does the same except you can also specify an index in case
> the 'xx-gpios' property describe several GPIOs.
>
> Signed-off-by: Boris Brezillon <redacted>

Patch applied.

Both are stacked on ib-gpiod-flags for now, going into test compile.

Yours,
Linus Walleij
```
