]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk: part: Extend API to get partition info
authorRuslan Trofymenko <ruslan.trofymenko@linaro.org>
Fri, 5 Jul 2019 12:37:31 +0000 (15:37 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 24 Jul 2019 17:16:29 +0000 (13:16 -0400)
commit6eccd1f740601f39796bace54c40cd785408e74e
tree170b30905f06317dc17b6412a2893a6522fe479c
parent37f1811a0b31005284e8514955e7bf7e174cc506
disk: part: Extend API to get partition info

This patch adds part_get_info_by_dev_and_name_or_num() function which
allows us to get partition info from its number or name. Partition of
interest is specified by string like "device_num:partition_number" or
"device_num#partition_name".

The patch was extracted from [1].

[1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2

Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Reviewed-by: Alistair Strachan <astrachan@google.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part.c
include/part.h