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

@ -77,7 +77,7 @@ static void test_flash_ram_pages_layout(const struct device *dev,
*layout_size = ARRAY_SIZE(dev_layout);
}
static const struct flash_driver_api flash_ram_api = {
static DEVICE_API(flash, flash_ram_api) = {
.erase = test_flash_ram_erase,
.write = test_flash_ram_write,
.read = test_flash_ram_read,