fs/littlefs: correct some code format in lfs.h by running checkpatch.sh

This commit is contained in:
liuhaitao 2020-03-06 23:53:43 +08:00 committed by Gregory Nutt
parent 3ee1af5bcc
commit 3ee9180691

View File

@ -283,10 +283,9 @@ struct lfs_info_s
/* Name of the file stored as a null-terminated string */ /* Name of the file stored as a null-terminated string */
char name[LFS_NAME_MAX+1]; char name[LFS_NAME_MAX + 1];
}; };
/* littlefs data structures */ /* littlefs data structures */
typedef struct lfs_entry_s typedef struct lfs_entry_s
@ -308,7 +307,7 @@ typedef struct lfs_entry_s
} file; } file;
lfs_block_t dir[2]; lfs_block_t dir[2];
} u; } u;
} d; } d;
} lfs_entry_t; } lfs_entry_t;
typedef struct lfs_cache_s typedef struct lfs_cache_s
@ -554,7 +553,8 @@ lfs_soff_t lfs_file_seek(FAR lfs_t *lfs, FAR lfs_file_t *file,
* Returns a negative error code on failure. * Returns a negative error code on failure.
*/ */
int lfs_file_truncate(FAR FAR lfs_t *lfs, FAR lfs_file_t *file, lfs_off_t size); int lfs_file_truncate(FAR lfs_t *lfs, FAR lfs_file_t *file,
lfs_off_t size);
/* Return the position of the file /* Return the position of the file
* *
@ -629,7 +629,7 @@ int lfs_dir_seek(FAR lfs_t *lfs, FAR lfs_dir_t *dir, lfs_off_t off);
* The returned offset is only meant to be consumed by seek and may not make * The returned offset is only meant to be consumed by seek and may not make
* sense, but does indicate the current position in the directory iteration. * sense, but does indicate the current position in the directory iteration.
* *
* Returns the position of the directory, or a negative error code on failure. * Returns the position of the directory, or a negative error code on failure
*/ */
lfs_soff_t lfs_dir_tell(FAR lfs_t *lfs, FAR lfs_dir_t *dir); lfs_soff_t lfs_dir_tell(FAR lfs_t *lfs, FAR lfs_dir_t *dir);
@ -667,7 +667,7 @@ int lfs_traverse(FAR lfs_t *lfs, CODE int (*cb)(FAR void *, lfs_block_t),
int lfs_deorphan(FAR lfs_t *lfs); int lfs_deorphan(FAR lfs_t *lfs);
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ }
#endif #endif
#endif /* __FS_LITTLEFS_LFS_H */ #endif /* __FS_LITTLEFS_LFS_H */