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:
parent
a87274780b
commit
9dd07da0a1
49 changed files with 58 additions and 57 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue