usbstd: Force usb_string_descriptor data field to match unicode string

Fix travis-ci build failure by forcing the data field of the struct
usb_string_descriptor to be the same type as a 16bit unicode string.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-09-30 23:43:55 -04:00
parent 9ec2ad0992
commit b3a6fbed74
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ struct usb_endpoint_descriptor {
struct usb_string_descriptor {
uint8_t bLength;
uint8_t bDescriptorType;
uint16_t data[];
//uint16_t data[];
typeof(*u"") data[];
} PACKED;
#define USB_LANGID_ENGLISH_US 0x0409