[PATCH 0/2] gpio: Add the devm_fwnode_get_index_gpiod_from_child() helper

From: Boris Brezillon
Date: Mon Jan 30 2017 - 10:43:48 EST


Hello Linus,

I send these 2 patches separately from the Atmel NAND driver rework
since these are self-contained and do not have any external
dependencies.

Feel free to apply them in your tree if you are happy with this
version and once other subsystem maintainers have acked patch 1.

Thanks,

Boris

---
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 | 14 ++++++++------
drivers/gpio/gpiolib.c | 9 +++++----
drivers/input/keyboard/gpio_keys.c | 3 ++-
drivers/input/keyboard/gpio_keys_polled.c | 5 +++--
drivers/leds/leds-gpio.c | 2 +-
drivers/video/fbdev/amba-clcd-nomadik.c | 8 ++++----
include/linux/gpio/consumer.h | 23 ++++++++++++++++-------
7 files changed, 39 insertions(+), 25 deletions(-)

--
2.7.4