From: Andrew Ruder Date: Wed, 7 Aug 2013 21:52:40 +0000 (-0500) Subject: gpio: pca953x: fix gpio input on gpio offsets >= 8 X-Git-Tag: v3.12-rc1~111^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40a625daa88653d7942dc85483f6f289cd687cb7;p=pandora-kernel.git gpio: pca953x: fix gpio input on gpio offsets >= 8 This change fixes a regression introduced by commit f5f0b7aa8 (gpio: pca953x: make the register access by GPIO bank) When the pca953x driver was converted to using 8-bit reads/writes the bitmask in pca953x_gpio_get_value wasn't adjusted with a modulus BANK_SZ and consequently looks at the wrong bits in the input register. Signed-off-by: Andrew Ruder Reviewed-by: Gregory CLEMENT Signed-off-by: Linus Walleij --- Reading git-diff-tree failed