summaryrefslogtreecommitdiff
path: root/include/linux/uinput.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-06-22 15:53:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-06-22 15:53:48 +1000
commit66dfaeb999ed46037a38756fac17d852e3c16eac (patch)
tree51c26f545f0d1d4588cdbc80b4aa6d64a41942c8 /include/linux/uinput.h
parentf54656ecc145caa69bd54c5cade332bf000e4668 (diff)
downloadlibevdev-66dfaeb999ed46037a38756fac17d852e3c16eac.tar.gz
include: update to 4.1 header
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/linux/uinput.h')
-rw-r--r--include/linux/uinput.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/uinput.h b/include/linux/uinput.h
index 4f0c5f9..5eaad8a 100644
--- a/include/linux/uinput.h
+++ b/include/linux/uinput.h
@@ -82,7 +82,16 @@ struct uinput_ff_erase {
* The complete sysfs path is then /sys/devices/virtual/input/--NAME--
* Usually, it is in the form "inputN"
*/
-#define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 300, len)
+#define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 44, len)
+
+/**
+ * UI_GET_VERSION - Return version of uinput protocol
+ *
+ * This writes uinput protocol version implemented by the kernel into
+ * the integer pointed to by the ioctl argument. The protocol version
+ * is hard-coded in the kernel and is independent of the uinput device.
+ */
+#define UI_GET_VERSION _IOR(UINPUT_IOCTL_BASE, 45, unsigned int)
/*
* To write a force-feedback-capable driver, the upload_effect