From a942697d7b8f8b609e4a859d5e5bd1defcea3764 Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Thu, 18 Mar 2021 14:30:28 +0100 Subject: [PATCH] usb: remove const qualifier in struct usb_cfg_data() The pointer to interface descriptor in struct usb_cfg_data is used to access and modify the descriptor at runtime. Remove const qualifier and thus avoid unnecessary casts. Signed-off-by: Johann Fischer --- include/usb/usb_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/usb/usb_device.h b/include/usb/usb_device.h index ae35f68dd92..f159c68e1d8 100644 --- a/include/usb/usb_device.h +++ b/include/usb/usb_device.h @@ -182,7 +182,7 @@ struct usb_cfg_data { */ const uint8_t *usb_device_description; /** Pointer to interface descriptor */ - const void *interface_descriptor; + void *interface_descriptor; /** Function for interface runtime configuration */ usb_interface_config interface_config; /** Callback to be notified on USB connection status change */