commit | 80b0a6029272247f19146bf8f88e5d4bba94cba5 | [log] [tgz] |
---|---|---|
author | Mathias Nyman <mathias.nyman@linux.intel.com> | Wed Oct 24 17:25:27 2012 +0300 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Oct 26 09:18:55 2012 +0200 |
tree | 40cb6244bd1efb5e8e351952cf15e36d06801491 | |
parent | d6a2fa0424aefe97289aa561444ec3ae09bdbba0 [diff] |
gpiolib: add gpio get direction callback support 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@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>