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)
commit1feb57a245a4910b03202a814ffc51a900bd4aca
treeaa32b4a6ceb8132a7c89c4edae70ea83a7cbc1a0
parentb80eef95beb04760629822fa130aeed54cdfafca
gpio: add parameter to allow the use named gpios

The gpio binding document says that new code should always use named
gpios. Patch 40b73183 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
This page took 0.026539 seconds and 5 git commands to generate.