drivers: watchdog: Convert drivers to new DT device macros
Convert watchdog drivers to use new DT variants of the DEVICE APIs. DEVICE_AND_API_INIT -> DEVICE_DT_DEFINE DEVICE_GET -> DEVICE_DT_GET DEVICE_DECLARE -> DEVICE_DT_INST_DECLARE etc.. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
f105455ebe
commit
e376b9417b
13 changed files with 41 additions and 37 deletions
|
@ -207,8 +207,8 @@ static const struct mcux_wdog32_config mcux_wdog32_config_0 = {
|
|||
|
||||
static struct mcux_wdog32_data mcux_wdog32_data_0;
|
||||
|
||||
DEVICE_AND_API_INIT(mcux_wdog32_0, DT_INST_LABEL(0),
|
||||
&mcux_wdog32_init, &mcux_wdog32_data_0,
|
||||
DEVICE_DT_INST_DEFINE(0, &mcux_wdog32_init,
|
||||
device_pm_control_nop, &mcux_wdog32_data_0,
|
||||
&mcux_wdog32_config_0, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&mcux_wdog32_api);
|
||||
|
@ -217,7 +217,7 @@ static void mcux_wdog32_config_func_0(const struct device *dev)
|
|||
{
|
||||
IRQ_CONNECT(DT_INST_IRQN(0),
|
||||
DT_INST_IRQ(0, priority),
|
||||
mcux_wdog32_isr, DEVICE_GET(mcux_wdog32_0), 0);
|
||||
mcux_wdog32_isr, DEVICE_DT_INST_GET(0), 0);
|
||||
|
||||
irq_enable(DT_INST_IRQN(0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue