drivers: uart: Convert drivers to new DT device macros
Convert uart drivers from: DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE DEVICE_GET -> DEVICE_DT_INST_GET DEVICE_DECLARE -> DEVICE_DT_INST_DECLARE etc.. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
055a01b962
commit
c49b162214
33 changed files with 150 additions and 136 deletions
|
@ -483,7 +483,7 @@ static const struct uart_driver_api uart_esp32_api = {
|
|||
IRQ_CONNECT(INST_##idx##_ESPRESSIF_ESP32_UART_IRQ_0, \
|
||||
1, \
|
||||
uart_esp32_isr, \
|
||||
DEVICE_GET(uart_esp32_##idx), \
|
||||
DEVICE_DT_INST_GET(idx), \
|
||||
0); \
|
||||
irq_enable(INST_##idx##_ESPRESSIF_ESP32_UART_IRQ_0); \
|
||||
}
|
||||
|
@ -540,9 +540,9 @@ static struct uart_esp32_data uart_esp32_data_##idx = { \
|
|||
} \
|
||||
}; \
|
||||
\
|
||||
DEVICE_AND_API_INIT(uart_esp32_##idx, \
|
||||
DT_INST_LABEL(idx), \
|
||||
DEVICE_DT_INST_DEFINE(idx, \
|
||||
uart_esp32_init, \
|
||||
device_pm_control_nop, \
|
||||
&uart_esp32_data_##idx, \
|
||||
&uart_esp32_cfg_port_##idx, \
|
||||
PRE_KERNEL_1, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue