From eeefc4a5167c5504abc34ac4e6aab12b0f853bec Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 26 Oct 2022 10:59:10 +0800 Subject: [PATCH] Fix chip/cxd56_usbdev.c:675:20: error: unused function 'cxd56_iscableconnected' [-Werror,-Wunused-function] Signed-off-by: Xiang Xiao --- 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 *