From: Markus Mayer Date: Wed, 22 Jan 2014 00:10:41 +0000 (-0800) Subject: gpio: bcm281xx: Centralize register locking X-Git-Tag: v3.15-rc1~105^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdb93c03c5503aba9a6d98d49e543d879d85d0c4;p=pandora-kernel.git gpio: bcm281xx: Centralize register locking Rather than unlock/re-lock for every write access, unlock a GPIO when it is requested and re-lock it when it is freed. As a result, the GPIO helper functions no longer have to deal with unlocking and re-locking the register. In addition, only unlock a specific GPIO rather than unlocking the entire GPIO bank as before. Signed-off-by: Markus Mayer Reviewed-by: Tim Kryger Signed-off-by: Linus Walleij --- Reading git-diff-tree failed