From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 28 Mar 2015 09:04:31 -0600 Subject: [U-Boot] [PATCH V2 1/3] dm: gpio: request list: return the count if requests max_count reached In-Reply-To: <1427477624-23127-2-git-send-email-p.marczak@samsung.com> References: <1425983444-18565-1-git-send-email-p.marczak@samsung.com> <1427477624-23127-1-git-send-email-p.marczak@samsung.com> <1427477624-23127-2-git-send-email-p.marczak@samsung.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27 March 2015 at 11:33, Przemyslaw Marczak 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 > Cc: Simon Glass > --- > drivers/gpio/gpio-uclass.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) Acked-by: Simon Glass