1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/native: change mtd_native_dev_t parent name to base

This brings it in line with the other MTD implementations.
This commit is contained in:
Benjamin Valentin 2021-12-06 13:03:45 +01:00
parent 7cc67610ce
commit fc4cd0484b
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;