Re: [PATCH 1/2 v2] gpio-ich: Check for pin availability at request time

From: Linus Walleij
Date: Wed Mar 27 2013 - 04:12:03 EST


On Tue, Mar 5, 2013 at 9:22 PM, Jean Delvare <khali@xxxxxxxxxxxx> wrote:

> Stop checking for pin availability in direction and get functions.
> These functions can be called repeatedly, so checking every time is
> bad for performance. Now that requesting GPIO pins is no longer
> optional, checking for availability at pin request time is enough.
>
> Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
> Cc: Peter Tyser <ptyser@xxxxxxxxxxx>
> Cc: Grant Likely <grant.likely@xxxxxxxxxxxx>
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> ---
> Changes since v1:
> * Also drop the check from direction functions, as suggested by Peter.

Patch applied.

Thanks!
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/