]> git.baikalelectronics.ru Git - uboot.git/commit
dm: blk: Add a function to find an interface-type name
authorSimon Glass <sjg@chromium.org>
Sat, 29 Jul 2017 17:34:53 +0000 (11:34 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Aug 2017 07:44:16 +0000 (16:44 +0900)
commit8b8d5c6672e9b1c45721c438ab897deb48fc3890
treea79d028afa2b58447d49c6e70497530e0138779a
parent22c3032e5b64f1addc087ea18f7bf8ab9853f093
dm: blk: Add a function to find an interface-type name

Add a function to find the name of an interface type (e.g. "sata", "scsi")
from the interface type enum.

This is useful for generic code (not specific to SATA or SCSI, for
example) that wants to display the type of interface it is dealing with.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/blk-uclass.c
drivers/block/blk_legacy.c
include/blk.h