From: Mathias Nyman Date: Wed, 24 Oct 2012 14:25:27 +0000 (+0300) Subject: gpiolib: add gpio get direction callback support X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~87^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80b0a6029272247f19146bf8f88e5d4bba94cba5;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed