fs: make file system description const

There's no reason the table of pointers to file system functions needs
to be mutable at runtime.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2020-06-01 11:36:52 -05:00 committed by Carles Cufí
commit 353336d632
5 changed files with 10 additions and 10 deletions

View file

@ -494,7 +494,7 @@ int fs_statvfs(const char *path, struct fs_statvfs *stat);
* @retval 0 Success
* @retval -ERRNO errno code if error
*/
int fs_register(enum fs_type type, struct fs_file_system_t *fs);
int fs_register(enum fs_type type, const struct fs_file_system_t *fs);
/**
* @brief Unregister a file system
@ -507,7 +507,7 @@ int fs_register(enum fs_type type, struct fs_file_system_t *fs);
* @retval 0 Success
* @retval -ERRNO errno code if error
*/
int fs_unregister(enum fs_type type, struct fs_file_system_t *fs);
int fs_unregister(enum fs_type type, const struct fs_file_system_t *fs);
/**
* @}