]> git.sur5r.net Git - u-boot/commit
disk: Provide API to get partition by name for specific type
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 21 Sep 2017 22:51:58 +0000 (01:51 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2017 15:28:17 +0000 (11:28 -0400)
commit30789095566a6f4c62430f613f450acf8d5162e5
tree638ea729a038272db9e29915b866168b5653ad9c
parent19d141a0f90c640a8d5ed699745cbc8169918945
disk: Provide API to get partition by name for specific type

There is already existing function part_get_info_by_name().
But sometimes user is particularly interested in looking for only
specific partition type. This patch implements such an API that
provides partition searching by name for specified partition type.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part.c
include/part.h