Re: [PATCH 1/9] gpiolib: link all gpio_chips using a list

2013-02-09 Thread Grant Likely
On Tue, 5 Feb 2013 18:00:56 +0100, Linus Walleij wrote: > On Sat, Feb 2, 2013 at 5:29 PM, Alexandre Courbot wrote: > > > Add a list member to gpio_chip that allows all chips to be parsed > > quickly. The current method requires parsing the entire GPIO integer > > space, which is painfully slow.

Re: [PATCH 1/9] gpiolib: link all gpio_chips using a list

2013-02-05 Thread Linus Walleij
On Sat, Feb 2, 2013 at 5:29 PM, Alexandre Courbot wrote: > Add a list member to gpio_chip that allows all chips to be parsed > quickly. The current method requires parsing the entire GPIO integer > space, which is painfully slow. Using a list makes many chip operations > that involve lookup or pa

[PATCH 1/9] gpiolib: link all gpio_chips using a list

2013-02-02 Thread Alexandre Courbot
Add a list member to gpio_chip that allows all chips to be parsed quickly. The current method requires parsing the entire GPIO integer space, which is painfully slow. Using a list makes many chip operations that involve lookup or parsing faster, and also simplifies the code. It is also necessary to