Skip to content

Commit e2cde47

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: mspi: Place API into iterable section
Add wrapper DEVICE_API macro to all mspi_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent bad2bee commit e2cde47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mspi/mspi_ambiq_ap3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ static int mspi_ambiq_init(const struct device *controller)
13201320
return mspi_ambiq_config(&spec);
13211321
}
13221322

1323-
static struct mspi_driver_api mspi_ambiq_driver_api = {
1323+
static DEVICE_API(mspi, mspi_ambiq_driver_api) = {
13241324
.config = mspi_ambiq_config,
13251325
.dev_config = mspi_ambiq_dev_config,
13261326
.xip_config = mspi_ambiq_xip_config,

0 commit comments

Comments
 (0)