diff options
| author | sakumisu <[email protected]> | 2024-05-16 20:47:37 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-05-16 20:47:37 +0800 |
| commit | b1c81a92f56ab5a0444384a8b3103de97a76daa6 (patch) | |
| tree | e78a087a289271b1d4150185ccec13372e70c24f | |
| parent | af92236cf476220a7b9e4862c9cc2fdd4b131237 (diff) | |
fix warning
| -rw-r--r-- | common/usb_def.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/usb_def.h b/common/usb_def.h index b8331a02..aea3d6ad 100644 --- a/common/usb_def.h +++ b/common/usb_def.h @@ -542,7 +542,7 @@ struct usb_msosv2_subset_function_descriptor { } __PACKED; struct usb_msosv2_descriptor { - uint8_t *compat_id; + const uint8_t *compat_id; uint16_t compat_id_len; uint8_t vendor_code; }; @@ -616,12 +616,12 @@ struct usb_webusb_url_descriptor { struct usb_webusb_url_ex_descriptor { uint8_t vendor_code; - uint8_t *string; + const uint8_t *string; uint32_t string_len; } __PACKED; struct usb_bos_descriptor { - uint8_t *string; + const uint8_t *string; uint32_t string_len; }; @@ -673,7 +673,7 @@ struct usb_desc_header { bDeviceProtocol, /* bDeviceProtocol */ \ 0x40, /* bMaxPacketSize */ \ bNumConfigurations, /* bNumConfigurations */ \ - 0x00 /* bReserved */ + 0x00 /* bReserved */ #define USB_OTHER_SPEED_CONFIG_DESCRIPTOR_INIT(wTotalLength, bNumInterfaces, bConfigurationValue, bmAttributes, bMaxPower) \ 0x09, /* bLength */ \ |
