diff options
author | Simon Glass <sjg@chromium.org> | 2016-02-29 15:25:42 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-03-14 15:34:50 -0600 |
commit | db1d9e78e6f0ea51a698f18abe4cebc5ff39b691 (patch) | |
tree | 087b7d1acfd52d416a6a596a8e24f5972be251a6 /cmd | |
parent | fb1b7be9538dab7ce69208045cc3b80c6eb57f3b (diff) | |
download | u-boot-imx-db1d9e78e6f0ea51a698f18abe4cebc5ff39b691.zip u-boot-imx-db1d9e78e6f0ea51a698f18abe4cebc5ff39b691.tar.gz u-boot-imx-db1d9e78e6f0ea51a698f18abe4cebc5ff39b691.tar.bz2 |
dm: blk: Rename get_dev() to blk_get_dev()
The current name is too generic. Add a 'blk_' prefix to aid searching and
make its purpose clearer.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gpt.c | 2 | ||||
-rw-r--r-- | cmd/read.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -418,7 +418,7 @@ static int do_gpt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("'%s' is not a number\n", argv[3]); return CMD_RET_USAGE; } - blk_dev_desc = get_dev(argv[2], dev); + blk_dev_desc = blk_get_dev(argv[2], dev); if (!blk_dev_desc) { printf("%s: %s dev %d NOT available\n", __func__, argv[2], dev); @@ -39,7 +39,7 @@ int do_read(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) part = (int)simple_strtoul(++ep, NULL, 16); } - dev_desc = get_dev(argv[1], dev); + dev_desc = blk_get_dev(argv[1], dev); if (dev_desc == NULL) { printf("Block device %s %d not supported\n", argv[1], dev); return 1; |