X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=api%2Fapi_storage.c;h=ec92ae48d1c21fcc5ffae88bc42d9167171fa9ed;hb=6d846c726b300fcb4e5b9228709e6752459e7553;hp=b76b07d4c61388f4356b29270eaa07f269ad98c7;hpb=c2120fbfbc4d1f6953228f86be8bdbf38bacfdab;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)) {