]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: introduce devm_fwnode_gpiod_get_index()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 13 Sep 2019 03:22:38 +0000 (20:22 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 3 Oct 2019 10:03:58 +0000 (12:03 +0200)
commit9735741a860bf0677c9826f06bb688a9f1de8e9f
treedfcf9ace659ecd5aa4993a09fa05dac56e27ef67
parent83b4b06b7408ce798a220098fbeac6cb0a1db352
gpiolib: introduce devm_fwnode_gpiod_get_index()

devm_fwnode_get_index_gpiod_from_child() is too long, besides the fwnode
in question does not have to be a child of device node. Let's rename it
to devm_fwnode_gpiod_get_index() and keep the old name for compatibility
for now.

Also let's add a devm_fwnode_gpiod_get() wrapper as majority of the
callers need a single GPIO.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20190913032240.50333-2-dmitry.torokhov@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-devres.c
include/linux/gpio/consumer.h