From: Axel Lin Date: Fri, 23 Aug 2013 07:49:00 +0000 (+0800) Subject: pinctrl: rockchip: Simplify pin_to_bank equation X-Git-Tag: v3.12-rc1~151^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51578b9b1f6a9299e36fcf1554ff8cdf79372bd3;p=pandora-kernel.git pinctrl: rockchip: Simplify pin_to_bank equation If (b->pin_base + b->nr_pins - 1) < pin is true, pin >= b->pin_base is always true because b->nr_pins is never less than 0. Thus this patch simplify the equation. Signed-off-by: Axel Lin Acked-by: Heiko Stuebner Signed-off-by: Linus Walleij --- Reading git-diff-tree failed