[HAL][SAI] Add 'const' qualifier to comply to MISRA-C Rule-8.13
diff --git a/Inc/stm32l5xx_hal_sai.h b/Inc/stm32l5xx_hal_sai.h
index 50ecbe6..d6dfe67 100644
--- a/Inc/stm32l5xx_hal_sai.h
+++ b/Inc/stm32l5xx_hal_sai.h
@@ -806,8 +806,8 @@
   * @{
   */
 /* Peripheral State functions  ************************************************/
-HAL_SAI_StateTypeDef HAL_SAI_GetState(SAI_HandleTypeDef *hsai);
-uint32_t HAL_SAI_GetError(SAI_HandleTypeDef *hsai);
+HAL_SAI_StateTypeDef HAL_SAI_GetState(const SAI_HandleTypeDef *hsai);
+uint32_t HAL_SAI_GetError(const SAI_HandleTypeDef *hsai);
 /**
   * @}
   */
diff --git a/Inc/stm32l5xx_hal_sai_ex.h b/Inc/stm32l5xx_hal_sai_ex.h
index e6c2b97..1eea4fa 100644
--- a/Inc/stm32l5xx_hal_sai_ex.h
+++ b/Inc/stm32l5xx_hal_sai_ex.h
@@ -69,7 +69,8 @@
 /** @addtogroup SAIEx_Exported_Functions_Group1 Peripheral Control functions
   * @{
   */
-HAL_StatusTypeDef HAL_SAIEx_ConfigPdmMicDelay(SAI_HandleTypeDef *hsai, SAIEx_PdmMicDelayParamTypeDef *pdmMicDelay);
+HAL_StatusTypeDef HAL_SAIEx_ConfigPdmMicDelay(const SAI_HandleTypeDef *hsai,
+                                              const SAIEx_PdmMicDelayParamTypeDef *pdmMicDelay);
 /**
   * @}
   */
diff --git a/Src/stm32l5xx_hal_sai.c b/Src/stm32l5xx_hal_sai.c
index f8396b6..25cb7a6 100644
--- a/Src/stm32l5xx_hal_sai.c
+++ b/Src/stm32l5xx_hal_sai.c
@@ -570,7 +570,7 @@
     if (hsai->Init.Protocol == SAI_SPDIF_PROTOCOL)
     {
       hsai->Init.Mckdiv = hsai->Init.Mckdiv >> 1;
-    }    
+    }
   }
   /* Check the SAI Block master clock divider parameter */
   assert_param(IS_SAI_BLOCK_MASTER_DIVIDER(hsai->Init.Mckdiv));
@@ -2087,7 +2087,7 @@
   *              the configuration information for SAI module.
   * @retval HAL state
   */
-HAL_SAI_StateTypeDef HAL_SAI_GetState(SAI_HandleTypeDef *hsai)
+HAL_SAI_StateTypeDef HAL_SAI_GetState(const SAI_HandleTypeDef *hsai)
 {
   return hsai->State;
 }
@@ -2098,7 +2098,7 @@
   *              the configuration information for the specified SAI Block.
   * @retval SAI Error Code
   */
-uint32_t HAL_SAI_GetError(SAI_HandleTypeDef *hsai)
+uint32_t HAL_SAI_GetError(const SAI_HandleTypeDef *hsai)
 {
   return hsai->ErrorCode;
 }
diff --git a/Src/stm32l5xx_hal_sai_ex.c b/Src/stm32l5xx_hal_sai_ex.c
index 1b5d8e2..7590150 100644
--- a/Src/stm32l5xx_hal_sai_ex.c
+++ b/Src/stm32l5xx_hal_sai_ex.c
@@ -73,7 +73,8 @@
   * @param  pdmMicDelay Microphone delays configuration.
   * @retval HAL status
   */
-HAL_StatusTypeDef HAL_SAIEx_ConfigPdmMicDelay(SAI_HandleTypeDef *hsai, SAIEx_PdmMicDelayParamTypeDef *pdmMicDelay)
+HAL_StatusTypeDef HAL_SAIEx_ConfigPdmMicDelay(const SAI_HandleTypeDef *hsai,
+                                              const SAIEx_PdmMicDelayParamTypeDef *pdmMicDelay)
 {
   HAL_StatusTypeDef status = HAL_OK;
   uint32_t offset;