diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 11:40:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-18 18:36:55 -0400 |
commit | 09140113108541b95d340f3c7b6ee597d31ccc73 (patch) | |
tree | 4b4241b799bbbb2eeef4164392442b193af1703f /cmd/yaffs2.c | |
parent | 691d719db7183dfb1d1360efed4c5e9f6899095f (diff) | |
download | u-boot-09140113108541b95d340f3c7b6ee597d31ccc73.tar.gz u-boot-09140113108541b95d340f3c7b6ee597d31ccc73.tar.bz2 u-boot-09140113108541b95d340f3c7b6ee597d31ccc73.zip |
command: Remove the cmd_tbl_t typedef
We should not use typedefs in U-Boot. They cannot be used as forward
declarations which means that header files must include the full header to
access them.
Drop the typedef and rename the struct to remove the _s suffix which is
now not useful.
This requires quite a few header-file additions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/yaffs2.c')
-rw-r--r-- | cmd/yaffs2.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cmd/yaffs2.c b/cmd/yaffs2.c index 9244606bda..f29ebcc026 100644 --- a/cmd/yaffs2.c +++ b/cmd/yaffs2.c @@ -43,7 +43,7 @@ extern void cmd_yaffs_mv(const char *oldPath, const char *newPath); extern int yaffs_dump_dev(const char *path); /* ytrace - show/set yaffs trace mask */ -int do_ytrace(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ytrace(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { if (argc > 1) cmd_yaffs_tracemask(1, simple_strtol(argv[1], NULL, 16)); @@ -54,7 +54,7 @@ int do_ytrace(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) } /* ydevls - lists yaffs mount points. */ -int do_ydevls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ydevls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { cmd_yaffs_dev_ls(); @@ -62,7 +62,7 @@ int do_ydevls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) } /* ydevconfig mount_pt mtd_dev_num start_block end_block */ -int do_ydevconfig(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ydevconfig(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *mtpoint; int mtd_dev; @@ -85,7 +85,7 @@ int do_ydevconfig(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_ymount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ymount(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *mtpoint; @@ -102,7 +102,7 @@ int do_ymount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_yumount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_yumount(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *mtpoint; @@ -118,7 +118,7 @@ int do_yumount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_yls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_yls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *dirname; @@ -134,7 +134,7 @@ int do_yls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_yrd(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_yrd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *filename; @@ -153,7 +153,7 @@ int do_yrd(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_ywr(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ywr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *filename; ulong value; @@ -177,7 +177,7 @@ int do_ywr(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_yrdm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_yrdm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *filename; ulong addr; @@ -195,7 +195,7 @@ int do_yrdm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_ywrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ywrm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *filename; ulong addr; @@ -215,7 +215,7 @@ int do_ywrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_ymkdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ymkdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *dirname; @@ -230,7 +230,7 @@ int do_ymkdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_yrmdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_yrmdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *dirname; @@ -245,7 +245,7 @@ int do_yrmdir(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_yrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_yrm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *name; @@ -261,7 +261,7 @@ int do_yrm(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return 0; } -int do_ymv(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_ymv(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { char *oldPath; char *newPath; |