Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1e970b7d authored by Rob Herring's avatar Rob Herring Committed by Linus Walleij
Browse files

gpio: pxa: simplify BANK_OFF macro offset calculation



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: default avatarRob Herring <robh@kernel.org>
Cc: linux-gpio@vger.kernel.org
Reviewed-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent b90f8f22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment