diff options
| author | Simon Glass <[email protected]> | 2016-02-29 15:25:43 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2016-03-14 15:34:50 -0600 |
| commit | ebac37cfbfb32ea44704fe032fadd5cf334824b7 (patch) | |
| tree | fbe5d116a518343935942c1099e018d155b74427 /cmd/unzip.c | |
| parent | db1d9e78e6f0ea51a698f18abe4cebc5ff39b691 (diff) | |
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Stephen Warren <[email protected]>
Diffstat (limited to 'cmd/unzip.c')
| -rw-r--r-- | cmd/unzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/unzip.c b/cmd/unzip.c index 5be156644cb..a8bcb1f529d 100644 --- a/cmd/unzip.c +++ b/cmd/unzip.c @@ -53,7 +53,7 @@ static int do_gzwrite(cmd_tbl_t *cmdtp, int flag, if (argc < 5) return CMD_RET_USAGE; - ret = get_device(argv[1], argv[2], &bdev); + ret = blk_get_device_by_str(argv[1], argv[2], &bdev); if (ret < 0) return CMD_RET_FAILURE; |
