drivers: dma: Convert drivers to new DT device macros

Convert dma drivers from:

    DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE
    DEVICE_GET -> DEVICE_DT_INST_GET
    DEVICE_DECLARE -> DEVICE_DT_INST_DECLARE

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-17 11:53:29 -06:00 committed by Anas Nashif
commit c5582358f6
6 changed files with 21 additions and 17 deletions

View file

@ -202,8 +202,9 @@ static struct dmamux_stm32_data dmamux_stm32_data_##index = { \
.mux_channels = NULL, \
}; \
\
DEVICE_AND_API_INIT(dmamux_##index, DT_INST_LABEL(index), \
DEVICE_DT_INST_DEFINE(index, \
&dmamux_stm32_init, \
device_pm_control_nop, \
&dmamux_stm32_data_##index, &dmamux_stm32_config_##index,\
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,\
&dma_funcs);