ITE drivers/watchdog: clean up the #ifdef

Use if(IS_ENABLED(...)) {...} instead.

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
This commit is contained in:
Ruibin Chang 2022-01-20 14:53:42 +08:00 committed by Marti Bolivar
commit 7b43deedd5

View file

@ -213,7 +213,7 @@ static void wdt_it8xxx2_isr(const struct device *dev)
data->callback(dev, 0);
}
#ifdef CONFIG_WDT_ITE_REDUCE_WARNING_LEADING_TIME
if (IS_ENABLED(CONFIG_WDT_ITE_REDUCE_WARNING_LEADING_TIME)) {
/*
* Once warning timer triggered: if watchdog timer isn't reloaded,
* then we will reduce interval of warning timer to 30ms to print
@ -229,7 +229,7 @@ static void wdt_it8xxx2_isr(const struct device *dev)
/* clear pre-warning timer1 interrupt status */
ite_intc_isr_clear(DT_INST_IRQN(0));
}
#endif
}
wdt_warning_fired++;
LOG_DBG("WDT ISR");