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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:17:09 +0000 (13:17 +0000)
commiteb6291459de7c369093709d3d56b43c51db2f98e
tree07b33de88d192b6ee68b30ef84467d00ae11ee1f
parentb735201286140a311e7c748a93fca585da10631e
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/input/keyboard/tca8418_keypad.c