command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / cmd / x86 / mtrr.c
index d3fd959235f3e9e891b35f4b041021a28df0b3bf..2c40e711a1db3208d40004a0f50604d5f0cb9b08 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <asm/msr.h>
 #include <asm/mtrr.h>
 
@@ -43,7 +44,7 @@ static int do_mtrr_list(void)
        return 0;
 }
 
-static int do_mtrr_set(uint reg, int argc, char * const argv[])
+static int do_mtrr_set(uint reg, int argc, char *const argv[])
 {
        const char *typename = argv[0];
        struct mtrr_state state;
@@ -98,7 +99,8 @@ static int mtrr_set_valid(int reg, bool valid)
        return 0;
 }
 
-static int do_mtrr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mtrr(struct cmd_tbl *cmdtp, int flag, int argc,
+                  char *const argv[])
 {
        const char *cmd;
        uint reg;