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:
Andrei Emeltchenko 2018-11-13 10:48:17 +02:00 committed by Carles Cufí
commit 85cfe33262
2 changed files with 10 additions and 3 deletions

View file

@ -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