input: misc: keychord: move header to uapi
[firefly-linux-kernel-4.4.55.git] / include / linux / keychord.h
index 856a5850217b24442901f2f1c8799bf158b9d007..08cf5402102ca2a0bb7b8bc7ef1c89ae3430969f 100644 (file)
 #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_ */