dm: blk: export if_typename_to_iftype()

Change-Id: I436d431f69051861e02699e0366701a27ab5a0da
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-04-08 20:22:35 +08:00 committed by Jianhong Chen
parent e311da2458
commit 1712dc5c34
2 changed files with 9 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
[IF_TYPE_SYSTEMACE] = UCLASS_INVALID,
};
static enum if_type if_typename_to_iftype(const char *if_typename)
enum if_type if_typename_to_iftype(const char *if_typename)
{
int i;

View File

@ -670,4 +670,12 @@ const char *blk_get_if_type_name(enum if_type if_type);
int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
int *cur_devnump);
/**
* if_typename_to_iftype() - get iftype according to iftype name
*
* @if_typename: iftype name
* @return iftype index
*/
enum if_type if_typename_to_iftype(const char *if_typename);
#endif