Re: [PATCH] gpio: remove gpio_descs global array

2014-12-02 Thread Linus Walleij
On Tue, Dec 2, 2014 at 2:25 PM, Alexandre Courbot wrote: > On Tue, Dec 2, 2014 at 7:32 PM, Geert Uytterhoeven > wrote: >> This patch changes a return value from -EPROBE_DEFER to -EINVAL in >> regulator-gpio when a GPIO cannot be found yet, causing probe failures >> on r8a7791/koelsch: > > Hi Ge

Re: [PATCH] gpio: remove gpio_descs global array

2014-12-02 Thread Alexandre Courbot
On Tue, Dec 2, 2014 at 7:32 PM, Geert Uytterhoeven wrote: > Hi Linus, Alexandre, > > On Fri, Nov 28, 2014 at 11:29 AM, Linus Walleij > wrote: >> On Wed, Nov 19, 2014 at 8:51 AM, Alexandre Courbot >> wrote: >>> Replace the ARCH_NR_GPIOS-sized static array of GPIO descriptors by >>> dynamically-a

Re: [PATCH] gpio: remove gpio_descs global array

2014-12-02 Thread Geert Uytterhoeven
Hi Linus, Alexandre, On Fri, Nov 28, 2014 at 11:29 AM, Linus Walleij wrote: > On Wed, Nov 19, 2014 at 8:51 AM, Alexandre Courbot > wrote: >> Replace the ARCH_NR_GPIOS-sized static array of GPIO descriptors by >> dynamically-allocated arrays for each GPIO chip. >> >> This change makes gpio_to_de

Re: [PATCH] gpio: remove gpio_descs global array

2014-11-28 Thread Linus Walleij
On Wed, Nov 19, 2014 at 8:51 AM, Alexandre Courbot wrote: > Replace the ARCH_NR_GPIOS-sized static array of GPIO descriptors by > dynamically-allocated arrays for each GPIO chip. > > This change makes gpio_to_desc() perform in O(n) (where n is the number > of GPIO chips registered) instead of O(1