block: Add a function to find block device descriptor
authorTien Fong Chee <tien.fong.chee@intel.com>
Fri, 6 Jul 2018 08:26:36 +0000 (16:26 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 00:22:33 +0000 (20:22 -0400)
commitbc53d2637e5477ca3cd63ab942ef6038615a8e01
tree5aea0b1ec694e13cb95477adaa59d83cb463f468
parent14dfc6482a9057472ea202d2df4133a45bc3c1bc
block: Add a function to find block device descriptor

Add a function to find the block device descriptor of the parent
device.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
[trini: Move function declaration to avoid warning]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/block/blk-uclass.c
include/blk.h