From c94f064340e5c545b15b4b8a8faf905fb3a25b7c Mon Sep 17 00:00:00 2001 From: Doug Brown Date: Sun, 6 Aug 2023 20:35:28 -0700 Subject: [PATCH] Fix const correctness of S_USBD_INFO_T struct --- hal/m258ke/nuvoton/usbd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hal/m258ke/nuvoton/usbd.h b/hal/m258ke/nuvoton/usbd.h index 113b568..9aa5cf3 100644 --- a/hal/m258ke/nuvoton/usbd.h +++ b/hal/m258ke/nuvoton/usbd.h @@ -41,9 +41,9 @@ extern "C" */ typedef struct s_usbd_info { - uint8_t *gu8DevDesc; /*!< Pointer for USB Device Descriptor */ - uint8_t *gu8ConfigDesc; /*!< Pointer for USB Configuration Descriptor */ - uint8_t **gu8StringDesc; /*!< Pointer for USB String Descriptor pointers */ + uint8_t const *gu8DevDesc; /*!< Pointer for USB Device Descriptor */ + uint8_t const *gu8ConfigDesc; /*!< Pointer for USB Configuration Descriptor */ + uint8_t const * const *gu8StringDesc; /*!< Pointer for USB String Descriptor pointers */ } S_USBD_INFO_T; /*!< Device description structure */ extern const S_USBD_INFO_T gsInfo;