mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
blk: Make blk_next_free_devnum() public
blk_next_free_devnum() can be helpful in some cases. Make it a public API. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -517,7 +517,7 @@ int blk_find_max_devnum(enum if_type if_type)
|
|||||||
return max_devnum;
|
return max_devnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int blk_next_free_devnum(enum if_type if_type)
|
int blk_next_free_devnum(enum if_type if_type)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@@ -378,6 +378,17 @@ int blk_unbind_all(int if_type);
|
|||||||
*/
|
*/
|
||||||
int blk_find_max_devnum(enum if_type if_type);
|
int blk_find_max_devnum(enum if_type if_type);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* blk_next_free_devnum() - get the next device number for an interface type
|
||||||
|
*
|
||||||
|
* Finds the next number that is safe to use for a newly allocated device for
|
||||||
|
* an interface type @if_type.
|
||||||
|
*
|
||||||
|
* @if_type: Interface type to scan
|
||||||
|
* @return next device number safe to use, or -ve on error
|
||||||
|
*/
|
||||||
|
int blk_next_free_devnum(enum if_type if_type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* blk_select_hwpart() - select a hardware partition
|
* blk_select_hwpart() - select a hardware partition
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user