lkml.org 
[lkml]   [2013]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] pinctrl: rockchip: Simplify pin_to_bank equation
From
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


\
 
 \ /
  Last update: 2013-08-28 15:01    [W:0.045 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site