]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: lpc32xx: Fix off-by-one valid range checking for bank
authorAxel Lin <axel.lin@ingics.com>
Sun, 7 Apr 2013 12:28:20 +0000 (20:28 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Apr 2013 21:41:17 +0000 (23:41 +0200)
commitfdc7a9f85ab4c19acfc21e4da6ff8b7000bb686c
tree5e811b761ea73d80c977d6db2fd212dfe4fd7376
parent97ddb1c88b4ebe057b63346660abfee165ddd468
gpio: lpc32xx: Fix off-by-one valid range checking for bank

The valid bank should be 0 ... ARRAY_SIZE(lpc32xx_gpiochip) - 1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-lpc32xx.c