This is a part of the larger series previously posted at https://lore.kernel.org/linux-gpio/20190911075215.78047-1-dmitry.torokhov@xxxxxxxxx that was rebased on top of linux-gpio devel branch. Changes in v2: - switched export to be EXPORT_SYMBOL_GPL to match the new export markings for the rest of GPIO devres functions - rebased on top of Linus W devel branch - added Andy's Reviewed-by Dmitry Torokhov (2): gpiolib: introduce devm_fwnode_gpiod_get_index() gpiolib: introduce fwnode_gpiod_get_index() drivers/gpio/gpiolib-devres.c | 33 ++++++--------------- drivers/gpio/gpiolib.c | 48 +++++++++++++++++++++++++++++++ include/linux/gpio/consumer.h | 54 ++++++++++++++++++++++++++++------- 3 files changed, 101 insertions(+), 34 deletions(-) -- 2.23.0.237.gc6a4ce50a0-goog