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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue