ANDROID: input: keychord: Add keychord driver
authorMike Lockwood <lockwood@android.com>
Mon, 15 Dec 2008 19:51:56 +0000 (14:51 -0500)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit08a0437bf8d9085dd063171b5b37aae89fa42470
tree56b898d94df94949cc7b79d07fcb55b9bfc5ce37
parentdd06fdde72249ff53324ec5aaee519b77c234bf7
ANDROID: input: keychord: Add keychord driver

This driver allows userspace to receive notification when client
specified key combinations are pressed.
The client opens /dev/keychord and writes a list of keychords
for the driver to monitor.
The client then reads or polls /dev/keychord for notifications.
A client specified ID for the keychord is returned from read()
when a keychord press is detected.

Signed-off-by: Mike Lockwood <lockwood@android.com>
keychord: fix to build without CONFIG_PREEMPT

Change-Id: I911f13aeda4224b6fa57863bc7e8972fec8837fb

[AmitP: Folded following android-4.9 commit changes into this patch
        f4d1cf1208fe ("ANDROID: input: misc: keychord: move header to uapi")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/keychord.c [new file with mode: 0644]
include/linux/keychord.h [new file with mode: 0644]
include/uapi/linux/keychord.h [new file with mode: 0644]