Skip to content
Commit bb2c9a30 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent b8f8f6c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment