summaryrefslogtreecommitdiff
path: root/cmd/part.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-29 15:25:43 -0700
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commitebac37cfbfb32ea44704fe032fadd5cf334824b7 (patch)
treefbe5d116a518343935942c1099e018d155b74427 /cmd/part.c
parentdb1d9e78e6f0ea51a698f18abe4cebc5ff39b691 (diff)
downloadu-boot-ebac37cfbfb32ea44704fe032fadd5cf334824b7.tar.gz
dm: blk: Rename get_device() to blk_get_device_by_str()
The current name is too generic. The function returns a block device based on a provided string. Rename it to aid searching and make its purpose clearer. Also add a few comments. 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/part.c')
-rw-r--r--cmd/part.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/part.c b/cmd/part.c
index a572aabe1d..dd32d505b0 100644
--- a/cmd/part.c
+++ b/cmd/part.c
@@ -81,7 +81,7 @@ static int do_part_list(int argc, char * const argv[])
return CMD_RET_USAGE;
}
- ret = get_device(argv[0], argv[1], &desc);
+ ret = blk_get_device_by_str(argv[0], argv[1], &desc);
if (ret < 0)
return 1;
@@ -128,7 +128,7 @@ static int do_part_start(int argc, char * const argv[])
part = simple_strtoul(argv[2], NULL, 0);
- ret = get_device(argv[0], argv[1], &desc);
+ ret = blk_get_device_by_str(argv[0], argv[1], &desc);
if (ret < 0)
return 1;
@@ -162,7 +162,7 @@ static int do_part_size(int argc, char * const argv[])
part = simple_strtoul(argv[2], NULL, 0);
- ret = get_device(argv[0], argv[1], &desc);
+ ret = blk_get_device_by_str(argv[0], argv[1], &desc);
if (ret < 0)
return 1;