X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=api%2Fapi_storage.c;h=ec92ae48d1c21fcc5ffae88bc42d9167171fa9ed;hb=0ee1a22b6dbf30158718ab59f294bf1103f63121;hp=b76b07d4c61388f4356b29270eaa07f269ad98c7;hpb=8b485ba12b0defa0c4ed3559789250238f8331a8;p=u-boot diff --git a/api/api_storage.c b/api/api_storage.c index b76b07d4c6..ec92ae48d1 100644 --- a/api/api_storage.c +++ b/api/api_storage.c @@ -112,6 +112,11 @@ static int dev_stor_get(int type, int first, int *more, struct device_info *di) else found = 1; + /* provide hint if there are more devices in + * this group to enumerate */ + if (1 < specs[type].max_dev) + *more = 1; + } else { for (i = 0; i < specs[type].max_dev; i++) if (di->cookie == (void *)get_dev(specs[type].name, i)) {