[U-Boot] [PATCH V2 1/3] dm: gpio: request list: return the count if requests max_count reached

Simon Glass sjg at chromium.org
Sat Mar 28 16:04:31 CET 2015


On 27 March 2015 at 11:33, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
>
> The function gpio_request_list_by_name_nodev() returned -ENOSPC error,
> when the loop count was greater than requested count. This was wrong,
> because function should return the requested gpio count, when meets
> the call request without errors. Now, the loop ends on requested
> max_count.
>
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  drivers/gpio/gpio-uclass.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list