]> git.sur5r.net Git - u-boot/commit
dm: blk: Add a way to obtain a block device from its parent
authorSimon Glass <sjg@chromium.org>
Sat, 27 May 2017 17:37:17 +0000 (11:37 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 9 Jun 2017 11:25:16 +0000 (20:25 +0900)
commit9f103b9cb5f8de4f196b5ef8f6ddb4749cd732ba
treea4f8dd89d5ec45049c7bc0c389ce59835e1bcb23
parentfc69d472621b5c7513bcb8b4e1fe58ca8f5e035a
dm: blk: Add a way to obtain a block device from its parent

Many devices support a child block device (e.g. MMC, USB). Add a
convenient way to get this device given the parent device.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/block/blk-uclass.c
include/blk.h
test/dm/blk.c