Skip to content

Conversation

rruuaanng
Copy link
Contributor

Since mount-point are commonly used in applications, I suggest adding a dedicated wrapper macro.

These macros provide a way to get the `mount-point` value from
an fstab entry:
- FSTAB_ENTRY_DT_MOUNT_POINT
- FSTAB_ENTRY_DT_INST_MOUNT_POINT

Signed-off-by: James Roy <[email protected]>
@rruuaanng rruuaanng force-pushed the add-fs-macro branch 2 times, most recently from 70ff083 to 61845f9 Compare August 23, 2025 10:08
Replace `DT_INST_PROP(inst, mount_point)` with
`FSTAB_ENTRY_DT_INST_MOUNT_POINT(inst)`.

Signed-off-by: James Roy <[email protected]>
Copy link

@rruuaanng rruuaanng marked this pull request as ready for review August 23, 2025 13:12
@rruuaanng rruuaanng changed the title fs: Add a FSTAB_ENTRY_DT_*_MOUNT_POINT macros fs: Add FSTAB_ENTRY_DT_*_MOUNT_POINT macros Aug 23, 2025
Copy link
Contributor

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addition looks ok; test case missing from in fs api tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants