From 65eeaea56975ef6dbf83f5d5d60ba92050aa47d4 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Tue, 9 Jul 2019 14:55:28 +0800 Subject: [PATCH] cmd: cmd_blk: rename the command mtd to mtd_blk Since the command mtd is used in the file cmd/mtd.c, rename the command mtd to mtd_blk. Change-Id: I3a76aa8cc1da3f4b098f376d13fb0cdcf76ab246 Signed-off-by: Jason Zhu --- cmd/mtd_blk.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/mtd_blk.c b/cmd/mtd_blk.c index 3ca1122dff..4135fb09be 100644 --- a/cmd/mtd_blk.c +++ b/cmd/mtd_blk.c @@ -10,7 +10,7 @@ static int mtd_curr_dev = -1; -static int do_mtd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_mtd_blk(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { if (argc == 2) { return CMD_RET_FAILURE; @@ -20,12 +20,12 @@ static int do_mtd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) } U_BOOT_CMD( - mtd, 8, 1, do_mtd, - "MTD device sub-system", - "mtd dev [dev] - show or set current MTD device\n" - "mtd part [dev] - print partition table of one or all MTD devices\n" - "mtd read addr blk# cnt - read `cnt' blocks starting at block\n" + mtd_blk, 8, 1, do_mtd_blk, + "MTD Block device sub-system", + "mtd_blk dev [dev] - show or set current MTD device\n" + "mtd_blk part [dev] - print partition table of one or all MTD devices\n" + "mtd_blk read addr blk# cnt - read `cnt' blocks starting at block\n" " `blk#' to memory address `addr'\n" - "mtd write addr blk# cnt - write `cnt' blocks starting at block\n" + "mtd_blk write addr blk# cnt - write `cnt' blocks starting at block\n" " `blk#' from memory address `addr'" );