commit | fca7db5b801ff4e3d67e0d40c7302cf7cf68b478 | [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 | cefd0449d6df77eb0edb8a6800a441f9cd4e3653 [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>