usb: hid: Define helper definitions and cleanup code
Use newly defined definitions for cleaning the code. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
f6a20b83d6
commit
85cfe33262
2 changed files with 10 additions and 3 deletions
|
@ -40,6 +40,11 @@ struct usb_hid_descriptor {
|
|||
struct usb_hid_class_subdescriptor subdesc[1];
|
||||
} __packed;
|
||||
|
||||
/* HID Class Descriptor Types */
|
||||
|
||||
#define HID_CLASS_DESCRIPTOR_HID (REQTYPE_TYPE_CLASS << 5 | 0x01)
|
||||
#define HID_CLASS_DESCRIPTOR_REPORT (REQTYPE_TYPE_CLASS << 5 | 0x02)
|
||||
|
||||
/* HID Class Specific Requests */
|
||||
|
||||
#define HID_GET_REPORT 0x01
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue