Re: [PATCH] gpio: rewrite gpiochip_offset_to_desc()

2013-12-04 Thread Linus Walleij
On Tue, Dec 3, 2013 at 4:31 AM, Alexandre Courbot wrote: > gpiochip_offset_to_desc() was using gpio_to_desc(), which directly > addresses the global GPIO array we are hoping to get rid of someday. > Reimplement it using the descriptor array of the chip itself, after > checking the requested

Re: [PATCH] gpio: rewrite gpiochip_offset_to_desc()

2013-12-04 Thread Linus Walleij
On Tue, Dec 3, 2013 at 4:31 AM, Alexandre Courbot acour...@nvidia.com wrote: gpiochip_offset_to_desc() was using gpio_to_desc(), which directly addresses the global GPIO array we are hoping to get rid of someday. Reimplement it using the descriptor array of the chip itself, after checking the

[PATCH] gpio: rewrite gpiochip_offset_to_desc()

2013-12-02 Thread Alexandre Courbot
gpiochip_offset_to_desc() was using gpio_to_desc(), which directly addresses the global GPIO array we are hoping to get rid of someday. Reimplement it using the descriptor array of the chip itself, after checking the requested offset is within the valid bounds of the chip. Signed-off-by:

[PATCH] gpio: rewrite gpiochip_offset_to_desc()

2013-12-02 Thread Alexandre Courbot
gpiochip_offset_to_desc() was using gpio_to_desc(), which directly addresses the global GPIO array we are hoping to get rid of someday. Reimplement it using the descriptor array of the chip itself, after checking the requested offset is within the valid bounds of the chip. Signed-off-by: