Fix build warning when CONFIG_PM_SLEEP=n, the warning message is:
drivers/i2c/busses/i2c-imx-lpi2c.c:515:20: warning: ‘lpi2c_imx_isr’ defined but not used [-Wunused-function]
static irqreturn_t lpi2c_imx_isr(int irq, void *dev_id)
^~~~~~~~~~~~~
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
complete(&lpi2c_imx->complete);
}
+#ifdef CONFIG_PM_SLEEP
static void lpi2c_imx_read_rxfifo(struct lpi2c_imx_struct *lpi2c_imx)
{
unsigned int blocklen, remaining;
lpi2c_imx_intctrl(lpi2c_imx, MIER_RDIE);
}
+#endif
static void lpi2c_imx_write(struct lpi2c_imx_struct *lpi2c_imx,
struct i2c_msg *msgs)
return (result < 0) ? result : num;
}
+#ifdef CONFIG_PM_SLEEP
static irqreturn_t lpi2c_imx_isr(int irq, void *dev_id)
{
struct lpi2c_imx_struct *lpi2c_imx = dev_id;
ret:
return IRQ_HANDLED;
}
+#endif
static u32 lpi2c_imx_func(struct i2c_adapter *adapter)
{