mfd: rdc321x: Fix off-by-one for ngpio setting
authorAxel Lin <axel.lin@ingics.com>
Fri, 25 Apr 2014 01:24:21 +0000 (09:24 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:17 +0000 (08:11 +0100)
commit1ec93b9b176b3c4e065c326ccf40458fcc01e6c0
treee84e8d92db81ffc3c6d5baccc5949bfb9b7bf3a8
parent51f1f1cb24b870db44edcab56ffd89ecf8ce09e8
mfd: rdc321x: Fix off-by-one for ngpio setting

The valid gpio is GPIO0 ~ GPIO58, so ngpio should be 59.
This patch also renames RDC321X_MAX_GPIO to RDC321X_NUM_GPIO because it
actually means the number of available GPIOs.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rdc321x-southbridge.c
include/linux/mfd/rdc321x.h