commit | e2f689f874f063fd17da50f3d5e3cd9596456967 | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Sun Apr 02 01:49:50 2017 -0700 |
committer | Tom Rini <trini@konsulko.com> | Thu May 11 22:03:37 2017 -0400 |
tree | 467c895e20a1943197b9b186c7cb7f1d9b1bd6d2 | |
parent | 41f513ac1b0dba9ca03c33e62020663d0c8b5818 [diff] |
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>