OSDN Git Service

input: Update uhid_copy.h to version from Linux 3.14
authorSzymon Janc <szymon.janc@gmail.com>
Sat, 24 May 2014 18:53:57 +0000 (20:53 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 25 May 2014 09:58:52 +0000 (12:58 +0300)
profiles/input/uhid_copy.h

index 381b062..23a6287 100644 (file)
@@ -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;
@@ -86,7 +88,7 @@ struct uhid_feature_answer_req {
        __u16 err;
        __u16 size;
        __u8 data[UHID_DATA_MAX];
-};
+} __attribute__((__packed__));
 
 struct uhid_event {
        __u32 type;