gpio: pl061: refactor type setting
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Nov 2013 11:59:51 +0000 (12:59 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Feb 2014 08:11:58 +0000 (09:11 +0100)
commit438a2c9a743b54f3e79b5e54dd4d0590da304017
tree6ede9b06b6a521b3fff485162c951e9a9d5b5c7f
parentf6f293112e3d747e5d39ff0d12793909c3946035
gpio: pl061: refactor type setting

Refactor this function so that I can understand it, do one
big read/modify/write operation and have the bitmask in a
variable instead of recalculating it every time it's needed.

Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Deepak Sikri <deepak.sikri@st.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pl061.c