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/10/30 15:03:48 UTC

[incubator-nuttx] 07/22: Fix chip/cxd56_usbdev.c:675:20: error: unused function 'cxd56_iscableconnected' [-Werror,-Wunused-function]

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 eeefc4a5167c5504abc34ac4e6aab12b0f853bec
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Oct 26 10:59:10 2022 +0800

    Fix chip/cxd56_usbdev.c:675:20: error: unused function 'cxd56_iscableconnected' [-Werror,-Wunused-function]
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/cxd56xx/cxd56_usbdev.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/arch/arm/src/cxd56xx/cxd56_usbdev.c b/arch/arm/src/cxd56xx/cxd56_usbdev.c
index 07aea3d604..08858425ea 100644
--- a/arch/arm/src/cxd56xx/cxd56_usbdev.c
+++ b/arch/arm/src/cxd56xx/cxd56_usbdev.c
@@ -664,19 +664,6 @@ static inline void cxd56_cableconnected(bool connected)
     }
 }
 
-/****************************************************************************
- * Name: cxd56_iscableconnected
- *
- * Description:
- *   Return the cable status. (true is connected)
- *
- ****************************************************************************/
-
-static inline bool cxd56_iscableconnected(void)
-{
-  return getreg32(CXD56_TOPREG_USB_VBUS) & VBUS_DET;
-}
-
 /****************************************************************************
  * Name: cxd56_rqdequeue
  *