X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=api%2Fapi_storage.c;h=ec92ae48d1c21fcc5ffae88bc42d9167171fa9ed;hb=0ee1a22b6dbf30158718ab59f294bf1103f63121;hp=c53571296f7d791c2e068982408d1ed0050a4b5c;hpb=84bf7ca522e94ec402a1264b01971b924b7e268f;p=u-boot diff --git a/api/api_storage.c b/api/api_storage.c index c53571296f..ec92ae48d1 100644 --- a/api/api_storage.c +++ b/api/api_storage.c @@ -3,24 +3,7 @@ * * Written by: Rafal Jaworowski * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -129,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)) {