Skip to content

Commit 4abc7b5

Browse files
committed
drivers: dma: place api in iterable sections
This commit places dma driver class in iterable sections Signed-off-by: Jilay Pandya <[email protected]>
1 parent 0348270 commit 4abc7b5

36 files changed

+41
-40
lines changed

drivers/dma/dma_andes_atcdmac300.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static int dma_atcdmac300_get_status(const struct device *dev,
493493
return 0;
494494
}
495495

496-
static const struct dma_driver_api dma_atcdmac300_api = {
496+
static DEVICE_API(dma, dma_atcdmac300_api) = {
497497
.config = dma_atcdmac300_config,
498498
.reload = dma_atcdmac300_reload,
499499
.start = dma_atcdmac300_transfer_start,

drivers/dma/dma_dw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int dw_dma_init(const struct device *dev)
4848
return ret;
4949
}
5050

51-
static const struct dma_driver_api dw_dma_driver_api = {
51+
static DEVICE_API(dma, dw_dma_driver_api) = {
5252
.config = dw_dma_config,
5353
.start = dw_dma_start,
5454
.stop = dw_dma_stop,

drivers/dma/dma_dw_axi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static int dma_dw_axi_init(const struct device *dev)
851851
return 0;
852852
}
853853

854-
static const struct dma_driver_api dma_dw_axi_driver_api = {
854+
static DEVICE_API(dma, dma_dw_axi_driver_api) = {
855855
.config = dma_dw_axi_config,
856856
.start = dma_dw_axi_start,
857857
.stop = dma_dw_axi_stop,

drivers/dma/dma_emul.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ static bool dma_emul_chan_filter(const struct device *dev, int channel, void *fi
513513
return success;
514514
}
515515

516-
static const struct dma_driver_api dma_emul_driver_api = {
516+
static DEVICE_API(dma, dma_emul_driver_api) = {
517517
.config = dma_emul_configure,
518518
.reload = dma_emul_reload,
519519
.start = dma_emul_start,

drivers/dma/dma_esp32_gdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ static int dma_esp32_init(const struct device *dev)
605605
return 0;
606606
}
607607

608-
static const struct dma_driver_api dma_esp32_api = {
608+
static DEVICE_API(dma, dma_esp32_api) = {
609609
.config = dma_esp32_config,
610610
.start = dma_esp32_start,
611611
.stop = dma_esp32_stop,

drivers/dma/dma_gd32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ static void dma_gd32_isr(const struct device *dev)
651651
}
652652
}
653653

654-
static const struct dma_driver_api dma_gd32_driver_api = {
654+
static DEVICE_API(dma, dma_gd32_driver_api) = {
655655
.config = dma_gd32_config,
656656
.reload = dma_gd32_reload,
657657
.start = dma_gd32_start,

drivers/dma/dma_intel_adsp_gpdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static int gpdma_pm_action(const struct device *dev, enum pm_device_action actio
487487
}
488488
#endif
489489

490-
static const struct dma_driver_api intel_adsp_gpdma_driver_api = {
490+
static DEVICE_API(dma, intel_adsp_gpdma_driver_api) = {
491491
.config = intel_adsp_gpdma_config,
492492
.reload = intel_adsp_gpdma_copy,
493493
.start = intel_adsp_gpdma_start,

drivers/dma/dma_intel_adsp_hda_host_in.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <adsp_interrupt.h>
1111
#include "dma_intel_adsp_hda.h"
1212

13-
static const struct dma_driver_api intel_adsp_hda_dma_host_in_api = {
13+
static DEVICE_API(dma, intel_adsp_hda_dma_host_in_api) = {
1414
.config = intel_adsp_hda_dma_host_in_config,
1515
.reload = intel_adsp_hda_dma_host_reload,
1616
.start = intel_adsp_hda_dma_start,

drivers/dma/dma_intel_adsp_hda_host_out.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <zephyr/logging/log.h>
1515
LOG_MODULE_REGISTER(dma_intel_adsp_hda_dma_host_out);
1616

17-
static const struct dma_driver_api intel_adsp_hda_dma_host_out_api = {
17+
static DEVICE_API(dma, intel_adsp_hda_dma_host_out_api) = {
1818
.config = intel_adsp_hda_dma_host_out_config,
1919
.reload = intel_adsp_hda_dma_host_reload,
2020
.start = intel_adsp_hda_dma_start,

drivers/dma/dma_intel_adsp_hda_link_in.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <zephyr/logging/log.h>
1414
LOG_MODULE_REGISTER(dma_intel_adsp_hda_dma_link_in);
1515

16-
static const struct dma_driver_api intel_adsp_hda_dma_link_in_api = {
16+
static DEVICE_API(dma, intel_adsp_hda_dma_link_in_api) = {
1717
.config = intel_adsp_hda_dma_link_in_config,
1818
.reload = intel_adsp_hda_dma_link_reload,
1919
.start = intel_adsp_hda_dma_start,

0 commit comments

Comments
 (0)