drivers: flash: Place API into iterable section

Add wrapper DEVICE_API macro to all flash_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-28 21:10:42 +01:00 committed by Fabio Baltieri
commit 9dd07da0a1
49 changed files with 58 additions and 57 deletions

View file

@ -885,7 +885,7 @@ static void flash_stm32_qspi_pages_layout(const struct device *dev,
}
#endif
static const struct flash_driver_api flash_stm32_qspi_driver_api = {
static DEVICE_API(flash, flash_stm32_qspi_driver_api) = {
.read = flash_stm32_qspi_read,
.write = flash_stm32_qspi_write,
.erase = flash_stm32_qspi_erase,