Skip to content

Commit

Permalink
drivers/mtd_emulated: use XFA with MTD pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Apr 12, 2023
1 parent ad8a2bb commit a132a8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/include/mtd_emulated.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ extern "C" {
.size = sc * pps * ps, \
.memory = _mtd_emulated_memory ## n, \
.init_done = false, \
} \
} ; \
\
XFA(mtd_dev_xfa, 0) mtd_dev_t CONCAT(*mtd_emulated, n) = (mtd_dev_t *)&mtd_emulated_dev ## n

#if MODULE_VFS_AUTO_MOUNT || DOXYGEN
/**
Expand Down

0 comments on commit a132a8e

Please sign in to comment.