summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAbdulhadi Mohamed <abdulahhadi2@gmail.com>2017-07-19 16:31:10 +0100
committerGerrit - the friendly Code Review server <code-review@localhost>2019-01-10 21:03:30 -0800
commitfda16fc18334dd2efa39262cefbee2e3a4cd1897 (patch)
treee1e732fb77f610d79f1be210436b58c0dd820748 /include/linux
parentb3b13a88db52f9500853acd9290d319bba9f0917 (diff)
usb: gadget: f_hid: {GET,SET} PROTOCOL Support
The current f_hid driver doesn't handle GET_PROCOTOL and SET_PROCOTOL requests, which are required to operate HID gadgets in BOOT mode. This patch implements this feature for devices that have the same implementation for REPORT and BOOT mode so that these devices are recognized by older BIOSes. Change-Id: I2279d9083bf9093f5a96c16df5d7ae48d11fd503 Signed-off-by: Abdulhadi Mohamed <abdulahhadi2@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Git-commit: b3c4ec71ec413c2e5bfb028bdf1737af07f1fde0 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hid.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index fd86687f8119..d16de62231d3 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -345,6 +345,12 @@ struct hid_item {
#define HID_GROUP_LOGITECH_DJ_DEVICE 0x0102
/*
+ * HID protocol status
+ */
+#define HID_REPORT_PROTOCOL 1
+#define HID_BOOT_PROTOCOL 0
+
+/*
* This is the global environment of the parser. This information is
* persistent for main-items. The global environment can be saved and
* restored with PUSH/POP statements.