Input: tca8418 - use the interrupt trigger from the device tree
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 17 Jan 2017 21:24:22 +0000 (13:24 -0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 11 Apr 2017 06:04:39 +0000 (08:04 +0200)
commit8fe94276a2ae2d7a0bbd569f73f403475d5acb4b
tree4297c6d957e26a4646b062884d24e9ef6f2b2ca0
parent57c08434d2cca9edacd1651c4891148e5bc19135
Input: tca8418 - use the interrupt trigger from the device tree

commit 259b77ef853cc375a5c9198cf81f9b79fc19413c upstream.

The TCA8418 might be used using different interrupt triggers on various
boards. This is not working so far because the current code forces a
falling edge trigger.

The device tree already provides a trigger type, so let's use whatever it
sets up, and since we can be loaded without DT, keep the old behaviour for
the non-DT case.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/input/keyboard/tca8418_keypad.c