dts: Convert from DT_<COMPAT>_<INSTANCE>_<PROP> to DT_INST...
Change code from using now deprecated DT_<COMPAT>_<INSTANCE>_<PROP> defines to using DT_INST_<INSTANCE>_<COMPAT>_<PROP>. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
01e54a5472
commit
a2693975d7
206 changed files with 1480 additions and 1479 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(wdt_sam0);
|
||||
|
||||
#define WDT_REGS ((Wdt *)DT_ATMEL_SAM0_WATCHDOG_0_BASE_ADDRESS)
|
||||
#define WDT_REGS ((Wdt *)DT_INST_0_ATMEL_SAM0_WATCHDOG_BASE_ADDRESS)
|
||||
|
||||
struct wdt_sam0_dev_data {
|
||||
wdt_callback_t cb;
|
||||
|
@ -214,16 +214,16 @@ static int wdt_sam0_init(struct device *dev)
|
|||
| GCLK_CLKCTRL_GEN_GCLK2
|
||||
| GCLK_CLKCTRL_CLKEN;
|
||||
|
||||
IRQ_CONNECT(DT_ATMEL_SAM0_WATCHDOG_0_IRQ_0,
|
||||
DT_ATMEL_SAM0_WATCHDOG_0_IRQ_0_PRIORITY, wdt_sam0_isr,
|
||||
IRQ_CONNECT(DT_INST_0_ATMEL_SAM0_WATCHDOG_IRQ_0,
|
||||
DT_INST_0_ATMEL_SAM0_WATCHDOG_IRQ_0_PRIORITY, wdt_sam0_isr,
|
||||
DEVICE_GET(wdt_sam0), 0);
|
||||
irq_enable(DT_ATMEL_SAM0_WATCHDOG_0_IRQ_0);
|
||||
irq_enable(DT_INST_0_ATMEL_SAM0_WATCHDOG_IRQ_0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct wdt_sam0_dev_data wdt_sam0_data;
|
||||
|
||||
DEVICE_AND_API_INIT(wdt_sam0, DT_ATMEL_SAM0_WATCHDOG_0_LABEL, wdt_sam0_init,
|
||||
DEVICE_AND_API_INIT(wdt_sam0, DT_INST_0_ATMEL_SAM0_WATCHDOG_LABEL, wdt_sam0_init,
|
||||
&wdt_sam0_data, NULL, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &wdt_sam0_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue