pinctrl: sunxi: Fix off-by-one for valid offset range checking
authorAxel Lin <axel.lin@ingics.com>
Fri, 30 Aug 2013 08:31:25 +0000 (16:31 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Aug 2013 08:37:36 +0000 (10:37 +0200)
commitc9e3b2d8f75d84c7b333761471f6cef98ec4429a
treea50f04f05983c912277a6f999c10522a564ff5a8
parent07b7eb927994b8e78267a20244ecc9d49fb15d95
pinctrl: sunxi: Fix off-by-one for valid offset range checking

The valid offset range should be 0 ... chip->ngpio - 1.

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