Input: gpio_keys - allow separating gpio and irq in device tree
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 14 Nov 2014 23:57:09 +0000 (15:57 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Dec 2014 05:45:52 +0000 (21:45 -0800)
commit97d86e07b71643086a6d22a60efae2fb095fa82a
tree04596c88d56e27f94c69fa54ef3ed8fbff9d235b
parent1d6a01365fd63fbf7c2709a183e2936728c8efad
Input: gpio_keys - allow separating gpio and irq in device tree

This change allows specify interrupt for buttons separately form gpio,
potentially allowing to form several "clusters" of buttons on
different interrupts.

Button defined without both gpio and irq in device tree is a hared error
instead of a warning now.

Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/gpio-keys.txt
drivers/input/keyboard/gpio_keys.c