From: Peter Ujfalusi Date: Thu, 20 Dec 2012 09:44:11 +0000 (+0100) Subject: gpio: twl4030: Cache the direction and output states in private data X-Git-Tag: v3.9-rc1~76^2~12^2~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c111feabe2e200b15300d97107ffc1280bf8de2a;p=pandora-kernel.git gpio: twl4030: Cache the direction and output states in private data Use more coherent locking in the driver. Use bitfield to store the GPIO direction and if the pin is configured as output store the status also in a bitfiled. In this way we can just look at these bitfields when we need information about the pin status and only reach out to the chip when it is needed. Signed-off-by: Peter Ujfalusi Acked-by: Linus Walleij Signed-off-by: Linus Walleij --- Reading git-diff-tree failed