Re: [PATCH] gpio: lpc32xx: Fix off-by-one valid range checking for bank

2013-04-10 Thread Linus Walleij
On Sun, Apr 7, 2013 at 2:28 PM, Axel Lin wrote: > The valid bank should be 0 ... ARRAY_SIZE(lpc32xx_gpiochip) - 1. > > Signed-off-by: Axel Lin Yep, that's right. Patch applied! Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

[PATCH] gpio: lpc32xx: Fix off-by-one valid range checking for bank

2013-04-07 Thread Axel Lin
The valid bank should be 0 ... ARRAY_SIZE(lpc32xx_gpiochip) - 1. Signed-off-by: Axel Lin --- drivers/gpio/gpio-lpc32xx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c index 36d7dee..dda6a75 100644 --- a/drivers/gp