[PATCH v3 1/5] cmd: read: use part_get_info_by_dev_and_name_or_num() instead of open-coded dev_part parsing

Tom Rini trini at konsulko.com
Mon Mar 20 22:50:45 CET 2023


On Thu, Mar 02, 2023 at 09:12:21AM +0100, Rasmus Villemoes wrote:

> Use the helper part_get_info_by_dev_and_name_or_num() for parsing a
> dev[:part] string and obtaining the partition info in one go, instead
> of open-coding all that.
> 
> As a bonus, this will automatically allow using the dev#partname
> syntax as well, for accessing raw partitions by name.
> 
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>

For the series, applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230320/9db1886f/attachment.sig>


More information about the U-Boot mailing list