Fix Error: chip/s32k1xx_lpi2c.c:1226:1: error: unused function 's32k1xx_lpi2c_getenabledints' [-Werror,-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-13 10:05:56 +08:00 committed by Xiang Xiao
parent 6b5ce2f4d0
commit d05d5e4915

View File

@ -1131,11 +1131,13 @@ s32k1xx_lpi2c_getstatus(struct s32k1xx_lpi2c_priv_s *priv)
*
****************************************************************************/
#ifdef CONFIG_S32K1XX_LPI2C_DMA
static inline uint32_t
s32k1xx_lpi2c_getenabledints(struct s32k1xx_lpi2c_priv_s *priv)
{
return s32k1xx_lpi2c_getreg(priv, S32K1XX_LPI2C_MIER_OFFSET);
}
#endif
/****************************************************************************
* Name: s32k1xx_lpi2c_isr_process