]> git.baikalelectronics.ru Git - uboot.git/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)
commitf9c583af69436a9b21137ab38bfd3715cc29d968
treea4f8dd89d5ec45049c7bc0c389ce59835e1bcb23
parent295cce5fc328e013666c95ceed3f59a07be067a8
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