From: Laxman Dewangan Date: Fri, 17 Feb 2012 14:56:22 +0000 (+0530) Subject: gpio: gpiolib: Support for open source/emitter gpios X-Git-Tag: v3.4-rc1~65^2~19 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25553ff0756c59b617af6bdd280c94e943164184;p=pandora-kernel.git gpio: gpiolib: Support for open source/emitter gpios Adding support for the open source gpio on which client can specify the open source property through GPIO flag GPIOF_OPEN_SOURCE at the time of gpio request. The open source pins are normally pulled low and it cannot be driven to output with value of 0 and so when client request for setting the pin to LOW, the gpio will be set to input direction to make pin in tristate and hence PULL-DOWN on pins will make the state to LOW. The open source pin can be driven to HIGH by setting output with value of 1. Signed-off-by: Laxman Dewangan Reviwed-by: Mark Brown Acked-by: Linus Walleij Signed-off-by: Grant Likely --- Reading git-diff-tree failed