Fix chip/imxrt_lpi2c.c:1254:1: error: unused function 'imxrt_lpi2c_getenabledints'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 12:11:47 +08:00 committed by Petro Karashchenko
parent 427f65ac28
commit 9f7d7c046a
1 changed files with 2 additions and 0 deletions

View File

@ -1159,11 +1159,13 @@ imxrt_lpi2c_getstatus(struct imxrt_lpi2c_priv_s *priv)
*
****************************************************************************/
#ifdef CONFIG_IMXRT_LPI2C_DMA
static inline uint32_t
imxrt_lpi2c_getenabledints(struct imxrt_lpi2c_priv_s *priv)
{
return imxrt_lpi2c_getreg(priv, IMXRT_LPI2C_MIER_OFFSET);
}
#endif
/****************************************************************************
* Name: imxrt_lpi2c_isr_process