command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / cmd / blkcache.c
index 2cc65a9ee73afd7803b246b69e9a736713eebedd..25f252e455ed95a761418c452b9f9cde53e95d9a 100644 (file)
@@ -4,13 +4,14 @@
  * Author: Eric Nelson<eric@nelint.com>
  *
  */
+#include <command.h>
 #include <config.h>
 #include <common.h>
 #include <malloc.h>
 #include <part.h>
 
-static int blkc_show(cmd_tbl_t *cmdtp, int flag,
-                    int argc, char * const argv[])
+static int blkc_show(struct cmd_tbl *cmdtp, int flag,
+                    int argc, char *const argv[])
 {
        struct block_cache_stats stats;
        blkcache_stats(&stats);
@@ -25,8 +26,8 @@ static int blkc_show(cmd_tbl_t *cmdtp, int flag,
        return 0;
 }
 
-static int blkc_configure(cmd_tbl_t *cmdtp, int flag,
-                         int argc, char * const argv[])
+static int blkc_configure(struct cmd_tbl *cmdtp, int flag,
+                         int argc, char *const argv[])
 {
        unsigned blocks_per_entry, max_entries;
        if (argc != 3)
@@ -40,7 +41,7 @@ static int blkc_configure(cmd_tbl_t *cmdtp, int flag,
        return 0;
 }
 
-static cmd_tbl_t cmd_blkc_sub[] = {
+static struct cmd_tbl cmd_blkc_sub[] = {
        U_BOOT_CMD_MKENT(show, 0, 0, blkc_show, "", ""),
        U_BOOT_CMD_MKENT(configure, 3, 0, blkc_configure, "", ""),
 };
@@ -55,10 +56,10 @@ static __maybe_unused void blkc_reloc(void)
        };
 }
 
-static int do_blkcache(cmd_tbl_t *cmdtp, int flag,
-                      int argc, char * const argv[])
+static int do_blkcache(struct cmd_tbl *cmdtp, int flag,
+                      int argc, char *const argv[])
 {
-       cmd_tbl_t *c;
+       struct cmd_tbl *c;
 
 #ifdef CONFIG_NEEDS_MANUAL_RELOC
        blkc_reloc();