aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass2016-02-29 16:25:44 -0600
committerSimon Glass2016-03-14 16:34:50 -0500
commite35929e4a1ffe861f2f45e107986568c56c4f077 (patch)
tree931c9af5f622d4fb90bf932a911100bcd94c75c0 /disk/part.c
parentebac37cfbfb32ea44704fe032fadd5cf334824b7 (diff)
downloadu-boot-e35929e4a1ffe861f2f45e107986568c56c4f077.tar.gz
u-boot-e35929e4a1ffe861f2f45e107986568c56c4f077.tar.xz
u-boot-e35929e4a1ffe861f2f45e107986568c56c4f077.zip
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>
Diffstat (limited to 'disk/part.c')
-rw-r--r--disk/part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c
index 2e7adbcd9d..255ee7959f 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -511,7 +511,7 @@ cleanup:
511#define PART_UNSPECIFIED -2 511#define PART_UNSPECIFIED -2
512#define PART_AUTO -1 512#define PART_AUTO -1
513#define MAX_SEARCH_PARTITIONS 16 513#define MAX_SEARCH_PARTITIONS 16
514int get_device_and_partition(const char *ifname, const char *dev_part_str, 514int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
515 struct blk_desc **dev_desc, 515 struct blk_desc **dev_desc,
516 disk_partition_t *info, int allow_whole_dev) 516 disk_partition_t *info, int allow_whole_dev)
517{ 517{