From fc4cd0484b2749cec73cb387ed56e4aa0a6d46fa Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Mon, 6 Dec 2021 13:03:45 +0100 Subject: [PATCH] cpu/native: change mtd_native_dev_t parent name to base This brings it in line with the other MTD implementations. --- boards/native/board_init.c | 4 ++-- cpu/native/include/mtd_native.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/native/board_init.c b/boards/native/board_init.c index b051cc159b..a10942f29d 100644 --- a/boards/native/board_init.c +++ b/boards/native/board_init.c @@ -22,7 +22,7 @@ #include "mtd_native.h" mtd_native_dev_t mtd0_dev = { - .dev = { + .base = { .driver = &native_flash_driver, .sector_count = MTD_SECTOR_NUM, .pages_per_sector = MTD_SECTOR_SIZE / MTD_PAGE_SIZE, @@ -31,7 +31,7 @@ mtd_native_dev_t mtd0_dev = { .fname = MTD_NATIVE_FILENAME, }; -mtd_dev_t *mtd0 = (mtd_dev_t *)&mtd0_dev; +mtd_dev_t *mtd0 = &mtd0_dev.base; #endif #ifdef MODULE_VFS diff --git a/cpu/native/include/mtd_native.h b/cpu/native/include/mtd_native.h index 3cd0548247..7ba16cbeb4 100644 --- a/cpu/native/include/mtd_native.h +++ b/cpu/native/include/mtd_native.h @@ -28,7 +28,7 @@ extern "C" { /** mtd native descriptor */ typedef struct mtd_native_dev { - mtd_dev_t dev; /**< mtd generic device */ + mtd_dev_t base; /**< mtd generic device */ const char *fname; /**< filename to use for memory emulation */ } mtd_native_dev_t;