Re: [PATCH] pinctrl: rockchip: Simplify pin_to_bank equation

From: Linus Walleij
Date: Wed Aug 28 2013 - 07:20:35 EST


On Fri, Aug 23, 2013 at 9:49 AM, Axel Lin <axel.lin@xxxxxxxxxx> wrote:

> 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 <axel.lin@xxxxxxxxxx>

Patch applied with Heiko's ACK.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/