include/nuttx/usb/hid.h: The usbhid_descriptor_s struct defined in hid.h included some optional fields that should not be hard-defined as part of that structure. An arbitrray number of optional entries could be included in the descriptor, but that is not properly represneted. No code on NuttX currently depends on the structure definition with an optional descriptor so it is safe to remove.

This commit is contained in:
Matias N 2019-03-30 10:48:41 -06:00 committed by Gregory Nutt
parent b91b2cafd0
commit 6e80562bf9

View File

@ -638,6 +638,15 @@ struct usbhid_descriptor_s
uint8_t ndesc; /* Number of descriptors (>=1) */
uint8_t classdesc; /* Class descriptor type (See 7.1) */
uint8_t desclen[2]; /* Size of the report descriptor */
/* Optional descriptors may follow */
};
/* The HID descriptior is can be variable length. It may be include an
* arbitray number of optional descriptors.
*/
struct usbhid_optdesc_s
{
uint8_t optdesc; /* Type of optional descriptor */
uint8_t optlen[2]; /* Size of the optional descriptor */
};