Skip to content

Commit 6f7fb36

Browse files
committed
subsystem: fs: Use better wrapper macros
Replace `DT_INST_PROP(inst, mount_point)` with `FSTAB_ENTRY_DT_INST_MOUNT_POINT(inst)`. Signed-off-by: James Roy <[email protected]>
1 parent a3ee337 commit 6f7fb36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

subsys/fs/fat_fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ static const struct fs_file_system_t fatfs_fs = {
568568
static FATFS fs_data_##inst; \
569569
struct fs_mount_t FS_FSTAB_ENTRY(DT_DRV_INST(inst)) = { \
570570
.type = FS_FATFS, \
571-
.mnt_point = DT_INST_PROP(inst, mount_point), \
571+
.mnt_point = FSTAB_ENTRY_DT_INST_MOUNT_POINT(inst), \
572572
.fs_data = &fs_data_##inst, \
573573
.storage_dev = NULL, \
574574
.flags = FSTAB_ENTRY_DT_MOUNT_FLAGS(DT_DRV_INST(inst)), \

subsys/fs/littlefs_fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ static struct fs_littlefs fs_data_##inst = { \
11011101
}; \
11021102
struct fs_mount_t FS_FSTAB_ENTRY(DT_DRV_INST(inst)) = { \
11031103
.type = FS_LITTLEFS, \
1104-
.mnt_point = DT_INST_PROP(inst, mount_point), \
1104+
.mnt_point = FSTAB_ENTRY_DT_INST_MOUNT_POINT(inst), \
11051105
.fs_data = &fs_data_##inst, \
11061106
.storage_dev = (void *)DT_FIXED_PARTITION_ID(FS_PARTITION(inst)), \
11071107
.flags = FSTAB_ENTRY_DT_MOUNT_FLAGS(DT_DRV_INST(inst)), \

0 commit comments

Comments
 (0)