From: Axel Lin Date: Fri, 25 Apr 2014 01:24:21 +0000 (+0800) Subject: mfd: rdc321x: Fix off-by-one for ngpio setting X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~6^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec93b9b176b3c4e065c326ccf40458fcc01e6c0;p=pandora-kernel.git 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 Acked-by: Linus Walleij Signed-off-by: Lee Jones --- Reading git-diff-tree failed