From 8b628c659ce1e2a8714ebcfe55f80457a4ebe734 Mon Sep 17 00:00:00 2001 From: Andrew Chew Date: Fri, 26 Jul 2013 13:39:53 -0700 Subject: [PATCH] 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-format-patch failed