Fix chip/stm32_sdio.c:749:24: error: unused function 'stm32_getpwrctrl' [-Werror,-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-30 00:59:19 +08:00 committed by Petro Karashchenko
parent 09da04d7d2
commit 5d7f1d5020
4 changed files with 0 additions and 91 deletions

View File

@ -387,7 +387,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
static void stm32_setpwrctrl(uint32_t pwrctrl);
static inline uint32_t stm32_getpwrctrl(void);
/* DMA Helpers **************************************************************/
@ -730,27 +729,6 @@ static void stm32_setpwrctrl(uint32_t pwrctrl)
putreg32(regval, STM32_SDIO_POWER);
}
/****************************************************************************
* Name: stm32_getpwrctrl
*
* Description:
* Return the current value of the the PWRCTRL field of the SDIO POWER
* register. This function can be used to see if the SDIO is powered ON
* or OFF
*
* Input Parameters:
* None
*
* Returned Value:
* The current value of the the PWRCTRL field of the SDIO POWER register.
*
****************************************************************************/
static inline uint32_t stm32_getpwrctrl(void)
{
return getreg32(STM32_SDIO_POWER) & SDIO_POWER_PWRCTRL_MASK;
}
/****************************************************************************
* Name: stm32_sampleinit
*

View File

@ -468,7 +468,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv);
/* DMA Helpers **************************************************************/
@ -943,28 +942,6 @@ static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl)
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
}
/****************************************************************************
* Name: stm32_getpwrctrl
*
* Description:
* Return the current value of the the PWRCTRL field of the SDIO POWER
* register. This function can be used to see if the SDIO is powered ON
* or OFF
*
* Input Parameters:
* priv - Instance of the SDMMC private state structure.
*
* Returned Value:
* The current value of the the PWRCTRL field of the SDIO POWER register.
*
****************************************************************************/
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv)
{
return sdmmc_getreg32(priv, STM32_SDMMC_POWER_OFFSET) &
STM32_SDMMC_POWER_PWRCTRL_MASK;
}
/****************************************************************************
* Name: stm32_sampleinit
*

View File

@ -429,7 +429,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
sdio_eventset_t wkupevents);
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv);
/* Debug Helpers ************************************************************/
@ -888,28 +887,6 @@ static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl)
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
}
/****************************************************************************
* Name: stm32_getpwrctrl
*
* Description:
* Return the current value of the the PWRCTRL field of the SDIO POWER
* register. This function can be used to see if the SDIO is powered ON
* or OFF
*
* Input Parameters:
* priv - Instance of the SDMMC private state structure.
*
* Returned Value:
* The current value of the the PWRCTRL field of the SDIO POWER register.
*
****************************************************************************/
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv)
{
return sdmmc_getreg32(priv, STM32_SDMMC_POWER_OFFSET) &
STM32_SDMMC_POWER_PWRCTRL_MASK;
}
/****************************************************************************
* Name: stm32_sampleinit
*

View File

@ -395,7 +395,6 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
sdio_eventset_t waitevents, sdio_eventset_t wkupevents);
static void stm32_configxfrints(struct stm32_dev_s *priv, uint32_t xfrmask);
static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl);
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv);
/* DMA Helpers **************************************************************/
@ -836,28 +835,6 @@ static void stm32_setpwrctrl(struct stm32_dev_s *priv, uint32_t pwrctrl)
sdmmc_putreg32(priv, regval, STM32_SDMMC_POWER_OFFSET);
}
/****************************************************************************
* Name: stm32_getpwrctrl
*
* Description:
* Return the current value of the the PWRCTRL field of the SDIO POWER
* register. This function can be used to see if the SDIO is powered ON
* or OFF
*
* Input Parameters:
* priv - Instance of the SDMMC private state structure.
*
* Returned Value:
* The current value of the the PWRCTRL field of the SDIO POWER register.
*
****************************************************************************/
static inline uint32_t stm32_getpwrctrl(struct stm32_dev_s *priv)
{
return sdmmc_getreg32(priv, STM32_SDMMC_POWER_OFFSET) &
STM32_SDMMC_POWER_PWRCTRL_MASK;
}
/****************************************************************************
* Name: stm32_sampleinit
*