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

Linus Walleij
2013-08-28T11:20:31Z

On Fri, Aug 23, 2013 at 9:49 AM, Axel Lin <axel.lin@ingics.com> 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@ingics.com>

Patch applied with Heiko's ACK.

Yours,
Linus Walleij