This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 5d7f1d5020f535d1ca9123bff5ddae925ca35c53
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun Oct 30 00:59:19 2022 +0800

    Fix chip/stm32_sdio.c:749:24: error: unused function 'stm32_getpwrctrl' 
[-Werror,-Wunused-function]
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 arch/arm/src/stm32/stm32_sdio.c      | 22 ----------------------
 arch/arm/src/stm32f7/stm32_sdmmc.c   | 23 -----------------------
 arch/arm/src/stm32h7/stm32_sdmmc.c   | 23 -----------------------
 arch/arm/src/stm32l4/stm32l4_sdmmc.c | 23 -----------------------
 4 files changed, 91 deletions(-)

diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c
index 02b2ea724d..4c0460bc37 100644
--- a/arch/arm/src/stm32/stm32_sdio.c
+++ b/arch/arm/src/stm32/stm32_sdio.c
@@ -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
  *
diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c 
b/arch/arm/src/stm32f7/stm32_sdmmc.c
index 47594dfd1c..77b8aad1d3 100644
--- a/arch/arm/src/stm32f7/stm32_sdmmc.c
+++ b/arch/arm/src/stm32f7/stm32_sdmmc.c
@@ -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
  *
diff --git a/arch/arm/src/stm32h7/stm32_sdmmc.c 
b/arch/arm/src/stm32h7/stm32_sdmmc.c
index c2a03e3fad..92038d2ea3 100644
--- a/arch/arm/src/stm32h7/stm32_sdmmc.c
+++ b/arch/arm/src/stm32h7/stm32_sdmmc.c
@@ -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
  *
diff --git a/arch/arm/src/stm32l4/stm32l4_sdmmc.c 
b/arch/arm/src/stm32l4/stm32l4_sdmmc.c
index 139ab2c7db..176c5ea606 100644
--- a/arch/arm/src/stm32l4/stm32l4_sdmmc.c
+++ b/arch/arm/src/stm32l4/stm32l4_sdmmc.c
@@ -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
  *

Reply via email to