Re: [RFC PATCH v2] gpiolib: add gpio get direction callback support

From: Linus Walleij
Date: Fri Oct 26 2012 - 03:19:51 EST


On Wed, Oct 24, 2012 at 4:25 PM, Mathias Nyman
<mathias.nyman@xxxxxxxxxxxxxxx> wrote:

> Add .get_direction callback to gpio_chip. This allows gpiolib
> to check the current direction of a gpio.
> Used to show the correct gpio direction in sysfs and debug entries.
>
> If callback is not set then gpiolib will work as previously;
> e.g. guessing everything is input until a direction is set.
>
> Signed-off-by: Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx>

I buy into this concept.

Patch applied.

Unless Grant protests, it stays in.

Thanks for working on this!
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/