]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: read: use part_get_info_by_dev_and_name_or_num() instead of open-coded dev_part...
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 2 Mar 2023 08:12:21 +0000 (09:12 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Mar 2023 19:44:01 +0000 (15:44 -0400)
commitc3928e1aa3b09662912097753143376b34d9cedb
treed7215597e79740fe86b2c25247910218e601a288
parenta33903dcbe034a05b07ba6ced7d63639a86779f0
cmd: read: use part_get_info_by_dev_and_name_or_num() instead of open-coded dev_part parsing

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@chromium.org>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
cmd/read.c