On Wed, 12 Dec 2018 at 10:12, Ruslan Trofymenko <ruslan.trofyme...@linaro.org> wrote: > > 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.trofyme...@linaro.org> > Reviewed-by: Alistair Strachan <astrac...@google.com> > Reviewed-by: Sam Protsenko <semen.protse...@linaro.org> > --- > Changes in v2: > * Error codes are changed to -EINVAL instead of -1 > > disk/part.c | 68 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > include/part.h | 21 ++++++++++++++++++ > 2 files changed, 89 insertions(+)
Reviewed-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot