input: misc: keychord: move header to uapi
PATCH 3/3 input: misc: keychord: move header to uapi
From: Colin Cross <[email protected]>
Move the entire contents of linux/keychord.h header to uapi, it only contains a userspace interface.
Change-Id If94f83328b19efb58c66391dce3bd8e927788d8d
Signed-off-by Colin Cross <[email protected]>
Signed-off-by Bálint Czobor <[email protected]>
--- include/linux/keychord.h | 31 +----------------------- include/uapi/linux/keychord.h | 52 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 30 deletions(-) create mode 100644 include/uapi/linux/keychord.h
include/linux/keychord.h +1 -30
@@ -18,35 +18,6 @@#ifndef __LINUX_KEYCHORD_H_#define __LINUX_KEYCHORD_H_ -#include <linux/input.h> - -#define KEYCHORD_VERSION 1 - -/* -* One or more input_keychord structs are written to /dev/keychord -* at once to specify the list of keychords to monitor. -* Reading /dev/keychord returns the id of a keychord when the -* keychord combination is pressed. A keychord is signalled when -* all of the keys in the keycode list are in the pressed state. -* The order in which the keys are pressed does not matter. -* The keychord will not be signalled if keys not in the keycode -* list are pressed. -* Keychords will not be signalled on key release events. -*/ -struct input_keychord { -/* should be KEYCHORD_VERSION */ -__u16 version; -/* -* client specified ID, returned from read() -* when this keychord is pressed. -*/ -__u16 id; - -/* number of keycodes in this keychord */ -__u16 count; - -/* variable length array of keycodes */ -__u16 keycodes[]; -}; +#include <uapi/linux/keychord.h> #endif /* __LINUX_KEYCHORD_H_ */
include/uapi/linux/keychord.h new file +52 -0
52 lines not on this page · raw message
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html