Skip to content

Commit

Permalink
tests/pkg/fatfs_vfs: replace external mtd0 declaration
Browse files Browse the repository at this point in the history
Since the `extern mtd_dev_t *` declarations were removed from board definitions, `mtd_dev_get` has to be used instead.
  • Loading branch information
gschorcht committed Dec 7, 2023
1 parent 1ad92d4 commit c93f0a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/pkg/fatfs_vfs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ static vfs_mount_t _test_vfs_mount = {

#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
/* mtd devices are provided in the board's board_init.c*/
extern mtd_dev_t *mtd0;
#endif

#if defined(MODULE_MTD_SDCARD)
Expand Down Expand Up @@ -409,7 +408,7 @@ int main(void)
#endif

#if defined(MODULE_MTD_NATIVE) || defined(MODULE_MTD_MCI)
fatfs.dev = mtd0;
fatfs.dev = mtd_dev_get(0);
#endif

#if defined(MODULE_MTD_SDCARD)
Expand Down

0 comments on commit c93f0a7

Please sign in to comment.