commit | d50584053c227d55681c754b3d0467ae4e0bd484 | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Thu Mar 02 09:12:21 2023 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Mar 17 15:44:01 2023 -0400 |
tree | d7215597e79740fe86b2c25247910218e601a288 | |
parent | ddebd4b1b63338da18740da4df082319d7d329e0 [diff] |
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>