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-03-15 11:16:30 +01:00
2017-02-22 18:22:53 -08:00
2017-02-27 19:59:21 -08:00
2017-03-01 09:50:58 -08:00
2017-02-23 11:27:49 -08:00
2017-02-22 10:15:09 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 19:59:21 -08:00
2017-03-03 01:45:41 +01:00
2017-02-23 15:57:04 -08:00
2017-02-27 18:43:46 -08:00
2017-03-02 08:42:32 +01:00
2017-03-15 11:16:29 +01:00
2017-02-21 13:25:50 -08:00
2017-03-02 08:32:46 +01:00
2017-03-03 01:45:23 +01:00
2017-02-27 20:54:05 +02:00
2017-03-02 08:56:04 -07:00
2017-03-02 08:42:27 +01:00
2017-02-24 17:46:56 -08:00
2017-03-02 08:42:25 +01:00
2017-02-24 17:46:55 -08:00
2017-02-27 18:43:45 -08:00
2017-03-01 20:32:25 +01:00
2017-02-27 23:09:29 -08:00
2017-03-02 08:42:40 +01:00
2017-03-02 13:53:13 -08:00
2017-03-02 08:42:38 +01:00
2017-03-02 08:42:31 +01:00
2017-02-24 17:46:54 -08:00
2017-03-02 08:42:24 +01:00
2017-02-23 20:33:51 -08:00
2017-03-03 01:45:28 +01:00
2017-02-25 13:45:43 -08:00
2017-02-24 17:46:55 -08:00
2017-02-25 13:45:43 -08:00
2017-03-02 08:42:38 +01:00
2017-03-02 08:42:36 +01:00
2017-02-27 10:07:47 -08:00
2017-03-03 01:45:28 +01:00
2017-02-21 17:56:45 -08:00
2017-03-01 20:32:25 +01:00
2017-03-02 20:51:15 -05:00
2017-02-23 20:33:51 -08:00
2017-02-24 17:46:55 -08:00
2017-03-03 01:45:40 +01:00
2017-02-24 17:46:54 -08:00
2017-02-22 16:41:28 -08:00
2017-03-02 08:42:32 +01:00
2017-03-03 01:43:47 +01:00
2017-02-24 17:46:54 -08:00
2017-02-24 17:46:56 -08:00
2017-02-27 13:26:17 -08:00
2017-03-03 01:45:32 +01:00
2017-02-27 18:43:47 -08:00
2017-02-24 17:46:57 -08:00
2017-03-02 10:09:00 +11:00
2017-03-02 08:42:28 +01:00
2017-02-27 18:43:45 -08:00
2017-03-02 08:42:28 +01:00
2017-03-01 17:03:21 +01:00
2017-02-21 17:21:32 -08:00
2017-03-01 00:49:42 -08:00
2017-03-02 12:17:22 -08:00
2017-02-24 17:46:57 -08:00
2017-02-24 17:46:54 -08:00
2017-02-22 16:41:27 -08:00
2017-02-24 17:46:56 -08:00
2017-02-24 17:46:55 -08:00
2017-02-23 09:54:19 -08:00
2017-02-24 17:46:54 -08:00
2017-03-03 01:45:25 +01:00
2017-03-03 01:43:48 +01:00
2017-02-24 17:46:56 -08:00
2017-02-24 17:46:54 -08:00
2017-02-24 17:46:54 -08:00
2017-02-22 17:08:33 -08:00
2017-02-23 11:53:22 -08:00
2017-03-01 09:50:58 -08:00
2017-03-02 20:51:15 -05:00
2017-03-03 01:43:38 +01:00
2017-02-22 13:34:00 -07:00
2017-02-22 13:34:00 -07:00
2017-02-22 19:23:14 -08:00
2017-03-02 08:42:29 +01:00
2017-02-22 16:41:30 -08:00
2017-03-02 08:56:04 -07:00
2017-03-02 08:42:36 +01:00
2017-02-24 17:46:54 -08:00
2017-02-24 17:46:56 -08:00
2017-03-02 08:42:38 +01:00
2017-03-03 00:43:11 +01:00
2017-03-03 01:43:47 +01:00
2017-03-02 08:42:29 +01:00
2017-02-24 17:46:57 -08:00
2017-03-02 08:42:24 +01:00
2017-03-02 08:42:24 +01:00
2017-03-02 08:42:24 +01:00
2017-02-24 09:02:10 +01:00
2017-03-02 08:42:38 +01:00
2017-02-24 17:46:55 -08:00
2017-02-27 18:43:48 -08:00
2017-03-03 01:45:41 +01:00
2017-02-23 20:33:51 -08:00
2017-02-23 11:55:41 -07:00
2017-02-27 18:43:46 -08:00
2017-02-24 17:46:56 -08:00
2017-03-03 01:43:48 +01:00
2017-03-03 01:43:48 +01:00
2017-03-02 08:42:29 +01:00
2017-03-02 08:42:27 +01:00
2017-02-22 16:41:27 -08:00
2017-02-22 16:41:27 -08:00
2017-03-02 20:51:15 -05:00
2017-02-22 16:41:30 -08:00
2017-02-22 16:41:30 -08:00
2017-03-02 20:51:15 -05:00
2017-03-02 08:42:29 +01:00
2017-03-03 01:45:25 +01:00
2017-03-03 01:45:25 +01:00
2017-03-03 01:45:39 +01:00
2017-02-22 16:41:26 -08:00
2017-03-03 01:45:39 +01:00
2017-02-24 17:46:55 -08:00
2017-02-27 20:54:05 +02:00
2017-02-22 16:41:29 -08:00
2017-03-02 08:42:25 +01:00
2017-03-02 08:42:31 +01:00
2017-02-24 14:00:23 -08:00
2017-02-24 17:46:54 -08:00