mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
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>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <env.h>
|
||||
#include <cbfs.h>
|
||||
|
||||
static int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_cbfs_init(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
uintptr_t end_of_rom = 0xffffffff;
|
||||
@@ -45,7 +45,7 @@ U_BOOT_CMD(
|
||||
" CBFS is in. It defaults to 0xFFFFFFFF\n"
|
||||
);
|
||||
|
||||
static int do_cbfs_fsload(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_cbfs_fsload(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
const struct cbfs_cachenode *file;
|
||||
@@ -92,7 +92,7 @@ U_BOOT_CMD(
|
||||
" - load binary file 'filename' from the cbfs to address 'addr'\n"
|
||||
);
|
||||
|
||||
static int do_cbfs_ls(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_cbfs_ls(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
const struct cbfs_cachenode *file = file_cbfs_get_first();
|
||||
@@ -201,7 +201,7 @@ U_BOOT_CMD(
|
||||
" - list the files in the cbfs\n"
|
||||
);
|
||||
|
||||
static int do_cbfs_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_cbfs_fsinfo(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
const struct cbfs_header *header = file_cbfs_get_header();
|
||||
|
Reference in New Issue
Block a user