mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dm: blk: Rename get_device_and_partition()
Rename this function to blk_get_device_part_str(). This is a better name because it makes it clear that the function returns a block device and parses a string. 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:
@@ -38,7 +38,7 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
|
||||
|
||||
bootstage_mark(BOOTSTAGE_ID_IDE_BOOT_DEVICE);
|
||||
|
||||
part = get_device_and_partition(intf, (argc == 3) ? argv[2] : NULL,
|
||||
part = blk_get_device_part_str(intf, (argc == 3) ? argv[2] : NULL,
|
||||
&dev_desc, &info, 1);
|
||||
if (part < 0) {
|
||||
bootstage_error(BOOTSTAGE_ID_IDE_TYPE);
|
||||
|
Reference in New Issue
Block a user