input: add keycombo, a general key combo driver.
authorDaniel Rosenberg <drosen@google.com>
Wed, 7 May 2014 23:52:10 +0000 (16:52 -0700)
committerDaniel Rosenberg <drosen@google.com>
Tue, 13 May 2014 20:31:49 +0000 (13:31 -0700)
commit491e319ddc9388350826ef2333f5cbe27ace7f1c
tree3417c2aa39c1a037e2b3349444a2db0f6dcbdc8e
parent1b48727337de9e12237583931315cc6d85532415
input: add keycombo, a general key combo driver.

Keycombo lets you provide a key up and key down function, and an
optional time delay for key down. The driver will call the key
down function after the specified key combo has been held for the
speicified time delay. After you release the combo, if the key down
has happened, it calls key up.

Change-Id: I6a9a94e96a8f58fadd908fd1dc7944b9102a089f
Signed-off-by: Daniel Rosenberg <drosen@google.com>
drivers/input/Kconfig
drivers/input/Makefile
drivers/input/keycombo.c [new file with mode: 0644]
include/linux/keycombo.h [new file with mode: 0644]