From a3d0fadca6b14f57477a4143334993daf52f89dc Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 15 Nov 2024 16:19:24 -0700 Subject: bootstd: Export bootdev_get_from_blk() Export this function so it can be used from other files. Signed-off-by: Simon Glass --- include/bootdev.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/bootdev.h') diff --git a/include/bootdev.h b/include/bootdev.h index 991b6229c1c..12c90c4ec1b 100644 --- a/include/bootdev.h +++ b/include/bootdev.h @@ -401,6 +401,15 @@ static int bootdev_setup_for_sibling_blk(struct udevice *blk, */ int bootdev_get_sibling_blk(struct udevice *dev, struct udevice **blkp); +/** + * bootdev_get_from_blk() - Get the bootdev given a block device + * + * @blk: Block device to check + * @bootdebp: Returns the bootdev found, if any + * Return 0 if OK, -ve on error + */ +int bootdev_get_from_blk(struct udevice *blk, struct udevice **bootdevp); + /** * bootdev_unbind_dev() - Unbind a bootdev device * -- cgit v1.2.3