Skip to content

Commit 9da0cc5

Browse files
committed
drivers/mtd_sdmmc: use XFA with MTD pointers
1 parent e70e6d7 commit 9da0cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd_sdmmc/mtd_sdmmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ const mtd_desc_t mtd_sdmmc_driver = {
235235
.sdmmc_idx = n, \
236236
}; \
237237
\
238-
mtd_dev_t CONCAT(*mtd, m) = (mtd_dev_t *)&mtd_sdmmc_dev ##n
238+
XFA_CONST(mtd_dev_xfa, m) mtd_dev_t CONCAT(*mtd, m) = (mtd_dev_t *)&mtd_sdmmc_dev ## n
239239

240240
#if IS_USED(MODULE_MTD_SDCARD_DEFAULT)
241241
/* we use /sd1 as default mount point for coexistence with mtd_sdcard */

0 commit comments

Comments
 (0)