]> git.sur5r.net Git - u-boot/commit
dm: core: device: add function: dev_get_uclass_name()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 15 Apr 2015 11:07:25 +0000 (13:07 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Apr 2015 17:03:15 +0000 (11:03 -0600)
commitf9c370dcdf056f035f18bf77db8a706cea21f9ce
tree624132a7fed152a22b665157f925450487cd636c
parentcc73d37b7f1edbbf03e2abcf5815bdd122e8baed
dm: core: device: add function: dev_get_uclass_name()

This commit extends the driver model device's API by function:
- dev_get_uclass_name()

And this function returns the device's uclass driver name if:
- given dev pointer, is non_NULL
otherwise, the NULL pointer is returned.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
include/dm/device.h