From: Rob Herring Date: Mon, 2 Mar 2015 21:30:58 +0000 (-0600) Subject: gpio: pxa: simplify BANK_OFF macro offset calculation X-Git-Tag: omap-for-v4.2/o2_dc~94^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e970b7d6d4fb3d715a34842ec00646f4b94bd72;p=pandora-kernel.git 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: Rob Herring Cc: linux-gpio@vger.kernel.org Reviewed-by: Alexandre Courbot Signed-off-by: Linus Walleij --- Reading git-diff-tree failed