Files
kernel_arpi/include/linux
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
..
2017-02-24 19:04:57 +01:00
2017-01-24 12:37:43 -08:00
2017-03-01 09:50:58 -08:00
2017-02-10 15:52:24 -05:00
2017-03-02 08:56:04 -07:00
2017-01-25 13:17:47 -05:00
2017-02-24 17:46:55 -08:00
2017-02-04 00:47:59 +01:00
2017-02-27 10:07:47 -08:00
2017-02-11 20:59:41 -05:00
2017-02-01 09:13:45 +01:00
2017-02-24 17:46:57 -08:00
2017-03-01 09:50:58 -08:00
2017-03-02 08:56:04 -07:00
2017-02-20 10:15:11 -05:00
2017-02-13 21:44:09 -05:00
2017-02-27 18:43:46 -08:00
2017-02-03 11:19:34 -05:00
2017-02-03 10:17:02 +01:00
2017-02-10 16:34:17 +00:00
2017-02-02 15:22:18 -05:00