gpiolib: Convert fwnode_get_named_gpiod() to configure GPIO
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 9 Jan 2017 14:02:28 +0000 (16:02 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Jan 2017 08:59:32 +0000 (09:59 +0100)
commita264d10ff45c688293d9112fddd8d29c819e0853
tree850a9dac5d81c8dfdd8bb4bcdc5247408ea59d9e
parent7ce7d89f48834cefece7804d38fc5d85382edf77
gpiolib: Convert fwnode_get_named_gpiod() to configure GPIO

Make fwnode_get_named_gpiod() consistent with the rest of
gpiod_get() like API, i.e. configure GPIO pin immediately after
request.

Besides obvious clean up it will help to configure pins based
on firmware provided resources.

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/devres.c
drivers/gpio/gpiolib.c
drivers/input/keyboard/gpio_keys.c
drivers/input/keyboard/gpio_keys_polled.c
drivers/leds/leds-gpio.c
drivers/video/fbdev/amba-clcd-nomadik.c
include/linux/gpio/consumer.h