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

2012-10-26 Thread Linus Walleij
On Wed, Oct 24, 2012 at 4:25 PM, Mathias Nyman 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;

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

2012-10-26 Thread Linus Walleij
On Wed, Oct 24, 2012 at 4:25 PM, Mathias Nyman mathias.ny...@linux.intel.com 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

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

2012-10-24 Thread Mathias Nyman
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.

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

2012-10-24 Thread Mathias Nyman
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.