bootstd: Move label parsing into its own function
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:48:00 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:41 +0000 (18:11 -0500)
commit74ebfb60f6890ab46d5233d13941ff9d6eea2312
tree6f415e41360d8ce1006e151a816484e8e1aa324e
parenta58e7bbeb64d8989bb6fc8699c84053e383361af
bootstd: Move label parsing into its own function

This is complicated enough to merit its own function, particularly as we
are about to add to it. Create a new label_to_uclass() function to decode
a label.

Also update the code to ignore an empty label or one consisting of just a
number.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c