From: Andrew Chew Date: Fri, 26 Jul 2013 20:39:53 +0000 (-0700) Subject: gpio: palmas: Fix misreported GPIO out value X-Git-Tag: v3.12-rc1~111^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b628c659ce1e2a8714ebcfe55f80457a4ebe734;p=pandora-kernel.git gpio: palmas: Fix misreported GPIO out value It seems that the value read back from the PALMAS_GPIO_DATA_IN register isn't valid if the GPIO direction is out. When that's the case, we can read back the PALMAS_GPIO_DATA_OUT register to get the proper output value. Signed-off-by: Andrew Chew Acked-by: Laxman Dewangan Signed-off-by: Linus Walleij --- Reading git-diff-tree failed