bootstd: Export bootdev_get_from_blk()

Export this function so it can be used from other files.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-01-15 08:48:43 -06:00
committed by Tom Rini
parent d9055f5e4f
commit a3d0fadca6
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -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
*