Skip to content

Commit

Permalink
drivers: mspi: Place API into iterable section
Browse files Browse the repository at this point in the history
Add wrapper DEVICE_API macro to all mspi_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
  • Loading branch information
pdgendt authored and fabiobaltieri committed Dec 2, 2024
1 parent bad2bee commit e2cde47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mspi/mspi_ambiq_ap3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ static int mspi_ambiq_init(const struct device *controller)
return mspi_ambiq_config(&spec);
}

static struct mspi_driver_api mspi_ambiq_driver_api = {
static DEVICE_API(mspi, mspi_ambiq_driver_api) = {
.config = mspi_ambiq_config,
.dev_config = mspi_ambiq_dev_config,
.xip_config = mspi_ambiq_xip_config,
Expand Down

0 comments on commit e2cde47

Please sign in to comment.