You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/01 16:12:51 UTC
[incubator-nuttx] 03/07: Fix lpc17_40_sdcard.c:614:24: error: unused function 'lpc17_40_getpwrctrl'
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 5948dc8c8f1342707640c827cbf33274b10e97cf
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Oct 31 22:20:34 2022 +0800
Fix lpc17_40_sdcard.c:614:24: error: unused function 'lpc17_40_getpwrctrl'
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c
index 394da0cc31..dcd4f15bb3 100644
--- a/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c
+++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c
@@ -299,7 +299,6 @@ static void lpc17_40_configwaitints(struct lpc17_40_dev_s *priv,
static void lpc17_40_configxfrints(struct lpc17_40_dev_s *priv,
uint32_t xfrmask);
static void lpc17_40_setpwrctrl(uint32_t pwrctrl);
-static inline uint32_t lpc17_40_getpwrctrl(void);
/* DMA Helpers **************************************************************/
@@ -595,29 +594,6 @@ static void lpc17_40_setpwrctrl(uint32_t pwrctrl)
putreg32(regval, LPC17_40_SDCARD_PWR);
}
-/****************************************************************************
- * Name: lpc17_40_getpwrctrl
- *
- * Description:
- * Return the current value of the the PWRCTRL field of the SD card P
- * register. This function can be used to see if the SD card is powered ON
- * or OFF
- *
- * Input Parameters:
- * None
- *
- * Returned Value:
- * The current value of the the PWRCTRL field of the SD card PWR register.
- *
- ****************************************************************************/
-
-static inline uint32_t lpc17_40_getpwrctrl(void)
-{
- /* Extract and return the PWRCTRL field of the PWR register. */
-
- return getreg32(LPC17_40_SDCARD_PWR) & SDCARD_PWR_CTRL_MASK;
-}
-
/****************************************************************************
* DMA Helpers
****************************************************************************/