input: gpio_keys_polled: Add support for GPIO descriptors
authorAaron Lu <aaron.lu@intel.com>
Tue, 21 Oct 2014 21:30:25 +0000 (23:30 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Nov 2014 20:58:23 +0000 (21:58 +0100)
commit633a21d80b4a2cd648aa2dacdb22494ffb2f28f0
tree0e2dfc45b7ce0b9ed7401bc886417d447a7a08fd
parent5c51277a9ababfa44a7f944100bdc9fbda139905
input: gpio_keys_polled: Add support for GPIO descriptors

GPIO descriptors are the preferred way over legacy GPIO numbers
nowadays. Convert the driver to use GPIO descriptors internally but
still allow passing legacy GPIO numbers from platform data to support
existing platforms.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/input/keyboard/gpio_keys_polled.c
include/linux/gpio_keys.h