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
|
@ -774,7 +774,7 @@ static int flash_mspi_atxp032_pm_action(const struct device *flash, enum pm_devi
|
|||
}
|
||||
#endif /** IS_ENABLED(CONFIG_PM_DEVICE) */
|
||||
|
||||
static const struct flash_driver_api flash_mspi_atxp032_api = {
|
||||
static DEVICE_API(flash, flash_mspi_atxp032_api) = {
|
||||
.erase = flash_mspi_atxp032_erase,
|
||||
.write = flash_mspi_atxp032_write,
|
||||
.read = flash_mspi_atxp032_read,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue