blk: Drop if_type

Use the uclass ID instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Simon Glass 2022-08-11 19:35:01 -06:00 committed by Tom Rini
parent ef4b66bcd1
commit ec8bdc914c
5 changed files with 48 additions and 51 deletions

View file

@ -12,7 +12,7 @@
#include <blk.h>
#include <command.h>
int blk_common_cmd(int argc, char *const argv[], enum if_type if_type,
int blk_common_cmd(int argc, char *const argv[], enum uclass_id if_type,
int *cur_devnump)
{
const char *if_name = blk_get_if_type_name(if_type);