summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/uhid.h
diff options
context:
space:
mode:
authorDavid Herrmann2013-07-15 19:10:15 +0200
committerJiri Kosina2013-07-31 10:33:05 +0200
commitbdb829e1dd710029a075b5f86d4053e7715beb06 (patch)
tree8cb82ceb65bf40e4966cea99d4a29576ae24e8b8 /include/uapi/linux/uhid.h
parentHID: i2c: use generic hidinput_input_event() (diff)
downloadkernel-qcow2-linux-bdb829e1dd710029a075b5f86d4053e7715beb06.tar.gz
kernel-qcow2-linux-bdb829e1dd710029a075b5f86d4053e7715beb06.tar.xz
kernel-qcow2-linux-bdb829e1dd710029a075b5f86d4053e7715beb06.zip
HID: uhid: use generic hidinput_input_event()
HID core provides the same functionality and can convert the input event to a raw output report. We can thus drop UHID_OUTPUT_EV and rely on the mandatory UHID_OUTPUT. User-space wasn't able to do anything with UHID_OUTPUT_EV, anyway. They don't have access to the report fields. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi/linux/uhid.h')
-rw-r--r--include/uapi/linux/uhid.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/uhid.h b/include/uapi/linux/uhid.h
index e9ed951e2b09..414b74be4da1 100644
--- a/include/uapi/linux/uhid.h
+++ b/include/uapi/linux/uhid.h
@@ -30,7 +30,7 @@ enum uhid_event_type {
UHID_OPEN,
UHID_CLOSE,
UHID_OUTPUT,
- UHID_OUTPUT_EV,
+ UHID_OUTPUT_EV, /* obsolete! */
UHID_INPUT,
UHID_FEATURE,
UHID_FEATURE_ANSWER,
@@ -69,6 +69,8 @@ struct uhid_output_req {
__u8 rtype;
} __attribute__((__packed__));
+/* Obsolete! Newer kernels will no longer send these events but instead convert
+ * it into raw output reports via UHID_OUTPUT. */
struct uhid_output_ev_req {
__u16 type;
__u16 code;