[HAL][SMBUS] HAL code quality enhancement for MISRA-C Rule-8.13 by adding const qualifiers
diff --git a/Src/stm32g4xx_hal_smbus.c b/Src/stm32g4xx_hal_smbus.c index 4c0d6b0..b6467c0 100644 --- a/Src/stm32g4xx_hal_smbus.c +++ b/Src/stm32g4xx_hal_smbus.c
@@ -1813,7 +1813,7 @@ * the configuration information for the specified SMBUS. * @retval HAL state */ -uint32_t HAL_SMBUS_GetState(SMBUS_HandleTypeDef *hsmbus) +uint32_t HAL_SMBUS_GetState(const SMBUS_HandleTypeDef *hsmbus) { /* Return SMBUS handle state */ return hsmbus->State; @@ -1825,7 +1825,7 @@ * the configuration information for the specified SMBUS. * @retval SMBUS Error Code */ -uint32_t HAL_SMBUS_GetError(SMBUS_HandleTypeDef *hsmbus) +uint32_t HAL_SMBUS_GetError(const SMBUS_HandleTypeDef *hsmbus) { return hsmbus->ErrorCode; }