summaryrefslogtreecommitdiffstats
path: root/lib/usercopy.c
diff options
context:
space:
mode:
authorMarkus Mayer <markus.mayer@linaro.org>2014-01-21 16:10:41 -0800
committerLinus Walleij <linus.walleij@linaro.org>2014-02-06 10:33:46 +0100
commitbdb93c03c5503aba9a6d98d49e543d879d85d0c4 (patch)
treeafb30fdc64176939b4ca6f40da02743146dd4694 /lib/usercopy.c
parentd762bae45a3dd65d02a35b4252598912f7fbcde0 (diff)
downloadlinux-stable-bdb93c03c5503aba9a6d98d49e543d879d85d0c4.tar.gz
linux-stable-bdb93c03c5503aba9a6d98d49e543d879d85d0c4.tar.bz2
linux-stable-bdb93c03c5503aba9a6d98d49e543d879d85d0c4.zip
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 <markus.mayer@linaro.org> Reviewed-by: Tim Kryger <tim.kryger@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'lib/usercopy.c')
0 files changed, 0 insertions, 0 deletions