git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b90f8f2
)
gpio: pxa: simplify BANK_OFF macro offset calculation
author
Rob Herring
<robh@kernel.org>
Mon, 2 Mar 2015 21:30:58 +0000
(15:30 -0600)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 9 Mar 2015 13:41:12 +0000
(14:41 +0100)
The macro BANK_OFF which calculates the base offset for each GPIO port.
The macro is needlessly complex and unreadable. Simplify the
calculation to a simple math operation.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: linux-gpio@vger.kernel.org
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pxa.c
patch
|
blob
|
history
diff --cc
drivers/gpio/gpio-pxa.c
Simple merge