mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
db1d9e78e6
commit
ebac37cfbf
6 changed files with 39 additions and 13 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue