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:
parent
7cc67610ce
commit
fc4cd0484b
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user