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
1 changed files with 2 additions and 2 deletions

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
};