]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: add parameter to allow the use named gpios
authorOlliver Schinagl <oliver@schinagl.nl>
Wed, 21 Jan 2015 21:33:46 +0000 (22:33 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 4 Mar 2015 12:58:58 +0000 (13:58 +0100)
commit58c7efe7abbf98e43a7e145311d17ae0e83c6bdd
treeaa32b4a6ceb8132a7c89c4edae70ea83a7cbc1a0
parent3c1dd28eaccff4b83a7ace7e1cfc6e408b9e5d6f
gpio: add parameter to allow the use named gpios

The gpio binding document says that new code should always use named
gpios. Patch 3b9e80ef added support to parse a list of gpios from child
nodes, but does not make it possible to use named gpios. This patch adds
the con_id property and implements it is done in gpiolib.c, where the
old-style of using unnamed gpios still works.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Acked-by: Bryan Wu <cooloney@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/devres.c
drivers/input/keyboard/gpio_keys_polled.c
drivers/leds/leds-gpio.c
include/linux/gpio/consumer.h