]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: create an API to detect open drain/source on lines
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Feb 2016 14:41:42 +0000 (15:41 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Feb 2016 14:41:42 +0000 (15:41 +0100)
commita7f8c8ff15477750af82b7cac812c4c5a07d2c36
tree586c063e5cf8960fe39b481436a26f961f7fb44f
parentfd6abc5f260ffa1cd836df26a484b272b5ba84e3
gpio: create an API to detect open drain/source on lines

My left hand merges code to privatize the descriptor handling
while my right hand merges drivers that poke around and
disrespect with the same gpiolib internals.

So let's expose the proper APIs for drivers to ask the gpiolib
core if a line is marked as open drain or open source and
get some order around things so this driver compiles again.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tps65218.c
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h