linux_old1/Documentation/gpio
Dmitry Torokhov 22c403676d gpio: return NULL from gpiod_get_optional when GPIOLIB is disabled
Given the intent behind gpiod_get_optional() and friends it does not make
sense to return -ENOSYS when GPIOLIB is disabled: the driver is expected to
work just fine without gpio so let's behave as if gpio was not found.
Otherwise we have to special-case -ENOSYS in drivers.

Note that there was objection that someone might forget to enable GPIOLIB
when dealing with a platform that has device that actually specifies
optional gpio and we'll break it. I find this unconvincing as that would
have to be the *only GPIO* in the system, which is extremely unlikely.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-03-15 11:16:30 +01:00
..
00-INDEX gpio: document interaction with other subsystems 2015-07-21 11:39:32 +02:00
board.txt gpio/board.txt: point to gpiod_set_value 2016-10-20 14:14:11 +02:00
consumer.txt gpio: return NULL from gpiod_get_optional when GPIOLIB is disabled 2017-03-15 11:16:30 +01:00
driver.txt gpio: random documentation update 2017-01-31 15:43:05 +01:00
drivers-on-gpio.txt gpio: Fix paths to GPIO driver source files 2016-06-13 09:30:31 +02:00
gpio-legacy.txt gpio: delete ARCH_[WANTS_OPTIONAL|REQUIRE]_GPIOLIB 2016-08-08 09:50:00 +02:00
gpio.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00
sysfs.txt Typo correction for description in gpio document. 2015-10-11 15:39:01 -06:00