]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add a function to get a uclass name
authorSimon Glass <sjg@chromium.org>
Thu, 6 Oct 2016 02:42:13 +0000 (20:42 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 11 Oct 2016 03:55:33 +0000 (11:55 +0800)
commit0a5f6f869f1c2c6e9f75d83203754937014cbe47
tree998b48a943323c397a2c1b856672b77841858039
parent5023bd7a804e09d0bf4937d8fecb5d85af6dba3c
dm: core: Add a function to get a uclass name

It is useful in debug() statements to display the name of the uclass for a
device. Add a simple function to provide this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/uclass.c
include/dm/uclass.h