1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

make winusb_string_descriptor const

This commit is contained in:
Pavol Rusnak 2018-01-23 20:51:38 +01:00
parent 38b4d507bc
commit 132cc4b474
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -49,8 +49,8 @@ static struct winusb_compatible_id_descriptor winusb_wcid = {
}
};
static struct usb_string_descriptor winusb_string_descriptor = {
.bLength = sizeof(WINUSB_EXTRA_STRING) + sizeof(struct usb_string_descriptor),
static const struct usb_string_descriptor winusb_string_descriptor = {
.bLength = sizeof(struct usb_string_descriptor) + sizeof(WINUSB_EXTRA_STRING),
.bDescriptorType = USB_DT_STRING,
.wData = WINUSB_EXTRA_STRING
};