]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add a function to get a device's uclass ID
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:04 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:55 +0000 (17:09 -0700)
commitb367053102e597eb21b0a5e86c63e8d10f368cb0
tree352917bf63f69dec8584a547c836548f87a07cde
parent0118ce79577f9b0881f99a6e4f8a79cd5014cb87
dm: core: Add a function to get a device's uclass ID

This is useful to check which uclass a device is in.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/core/device.c
include/dm/device.h
test/dm/core.c