commit | 95e6e0370428a9951227a3810eaff99d2408f05a | [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 | b00361a874cc0adb72324b0bddba4d5e14811417 [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>