commit | bb2c9a30c23752accd53119d3964f6e6d1ae4f32 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Aug 11 19:34:57 2022 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Sep 16 11:05:16 2022 -0400 |
tree | 9d80bc33ee8043fa50e6ea0ef8c9233f4ad170f3 | |
parent | b8f8f6c8702368a5e6bd6e58556c03d5f8e3f1c7 [diff] |
blk: Rewrite if_type to name functions These are currently using a simple array lookup in one direction, and relying on if_type being sequential. With the move to uclass IDs this needs to change. Update the code to prepare for the new way. This patch is intended to introduce no functional change. The returning of "(none)" from blk_get_if_type_name() is handling a case that should not happen in either case. Signed-off-by: Simon Glass <sjg@chromium.org>