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

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-26 10:59:10 +08:00 committed by Petro Karashchenko
parent c701d1c6ec
commit eeefc4a516

View File

@ -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
*