]> git.baikalelectronics.ru Git - uboot.git/commit
disk: Return the partition number in part_get_info_by_name()
authorAlex Deymo <deymo@google.com>
Sun, 2 Apr 2017 08:49:50 +0000 (01:49 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 May 2017 02:03:37 +0000 (22:03 -0400)
commit15d76c0ffd64933aa12b9291742d0f49f3f652a3
tree467c895e20a1943197b9b186c7cb7f1d9b1bd6d2
parenta15082d258683b76d4e280451f7439e4541f7eab
disk: Return the partition number in part_get_info_by_name()

Similar to what blk_get_device_part_str() does, this patch makes
part_get_info_by_name() return the partition number in case of a match.
This is useful when the partition number is needed and not just the
descriptor.

Signed-off-by: Alex Deymo <deymo@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/fb_mmc.c
disk/part.c
include/part.h