Ricardo Ribalda Delgado
1b23c28d87
gpiolib: Fix gpio_direction_* for single direction GPIOs
...
[ Upstream commit ae9847f48a4b4bff0335da20be63ac84d94eb54c ]
GPIOs with no programmable direction are not required to implement
direction_output nor direction_input.
If we try to set an output direction on an output-only GPIO or input
direction on an input-only GPIO simply return 0.
This allows this single direction GPIO to be used by libgpiod.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:47:22 +01:00
..
2018-01-12 11:05:24 +01:00
2018-01-31 12:25:27 -08:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-03-26 10:10:18 +02:00
2019-04-03 06:26:27 +02:00
2018-01-13 22:12:07 +01:00
2018-08-29 10:54:38 +02:00
2019-02-06 17:30:12 +01:00
2018-01-13 22:18:34 +01:00
2018-01-13 22:22:49 +01:00
2016-03-30 10:38:51 +02:00
2018-01-13 22:47:48 +01:00
2019-05-04 09:20:19 +02:00
2018-07-29 23:34:54 +02:00
2018-08-06 23:46:55 +02:00
2017-04-28 09:47:46 +02:00
2018-11-13 11:08:30 -08:00
2018-01-13 22:56:52 +01:00
2016-06-08 10:49:58 +02:00
2018-01-14 01:48:48 +01:00
2018-01-14 01:56:24 +01:00
2018-01-14 02:00:10 +01:00
2018-01-14 02:00:10 +01:00
2019-07-28 08:29:28 +02:00
2018-03-19 01:50:07 +01:00
2018-08-29 14:04:04 +02:00
2019-10-17 13:45:10 -07:00
2018-08-06 23:46:55 +02:00
2017-01-26 15:27:37 +01:00
2019-04-03 06:26:27 +02:00
2017-04-28 10:09:16 +02:00
2018-03-19 01:50:24 +01:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-03-19 01:50:28 +01:00
2018-02-22 13:54:35 +01:00
2018-06-12 16:19:22 -07:00
2018-03-19 01:50:29 +01:00
2018-05-16 14:35:24 +02:00
2018-02-22 15:29:05 +01:00
2017-12-02 22:42:21 +01:00
2018-08-10 23:19:17 +02:00
2018-03-19 01:50:30 +01:00
2018-03-19 01:50:31 +01:00
2018-03-19 01:50:31 +01:00
2017-10-25 11:25:38 +02:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2017-07-31 15:26:57 +02:00
2016-09-13 10:35:56 +02:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-06-05 11:15:30 +01:00
2018-05-16 14:35:24 +02:00
2018-06-18 07:55:30 +02:00
2018-03-27 15:18:06 +02:00
2018-12-29 13:37:56 +01:00
2019-11-06 13:05:50 +01:00
2017-10-31 13:13:34 +01:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-06-18 07:55:30 +02:00
2018-02-22 15:25:40 +01:00
2018-07-29 23:13:09 +02:00
2018-05-16 14:35:24 +02:00
2018-08-10 23:19:17 +02:00
2018-12-13 09:16:12 +01:00
2017-10-25 11:25:40 +02:00
2016-02-16 00:20:03 +01:00
2018-05-16 14:35:24 +02:00
2019-02-27 10:08:49 +01:00
2019-01-13 09:51:03 +01:00
2019-05-08 07:21:53 +02:00
2018-11-13 11:08:14 -08:00
2018-05-24 14:22:04 +02:00
2019-07-26 09:14:06 +02:00
2018-05-24 14:25:13 +02:00
2019-03-23 20:10:05 +01:00
2019-02-06 17:30:12 +01:00
2018-05-24 17:09:41 +02:00
2018-04-27 00:55:16 +02:00
2018-04-30 10:48:08 +02:00
2018-07-29 21:55:33 +02:00
2019-01-26 09:32:33 +01:00
2018-05-16 14:35:24 +02:00
2019-04-20 09:16:00 +02:00
2018-02-22 13:49:59 +01:00
2018-07-02 16:00:49 +02:00
2018-07-13 10:55:26 +02:00
2018-07-02 16:00:49 +02:00
2017-12-22 15:24:31 +01:00
2018-07-02 16:00:49 +02:00
2018-07-02 16:00:49 +02:00
2018-07-02 16:00:49 +02:00
2017-03-15 11:16:36 +01:00
2018-07-02 16:00:49 +02:00
2018-03-02 11:00:43 +01:00
2018-07-02 16:00:49 +02:00
2018-07-02 16:00:49 +02:00
2018-07-02 16:00:49 +02:00
2018-08-06 23:46:55 +02:00
2018-08-10 23:04:27 +02:00
2017-11-08 14:06:21 +01:00
2018-07-02 16:01:02 +02:00
2018-08-15 21:35:38 -07:00
2018-06-12 16:19:22 -07:00
2018-08-10 23:04:27 +02:00
2016-09-13 10:35:56 +02:00
2016-06-07 09:35:16 +02:00
2016-09-13 10:35:56 +02:00
2017-01-26 15:27:37 +01:00
2016-06-07 09:35:16 +02:00
2016-09-13 10:35:56 +02:00
2018-02-23 15:26:42 +01:00
2016-10-21 14:55:07 +02:00
2018-05-16 14:35:24 +02:00
2016-02-23 20:35:49 +05:30
2017-09-04 14:41:02 +01:00
2017-08-23 10:20:16 +02:00
2016-02-23 20:35:50 +05:30
2018-08-15 21:35:38 -07:00
2019-06-15 11:54:11 +02:00
2016-06-07 09:35:16 +02:00
2018-08-06 23:46:55 +02:00
2017-01-26 15:27:37 +01:00
2017-11-08 14:06:21 +01:00
2018-01-09 14:51:00 +01:00
2018-02-12 09:36:06 +01:00
2016-09-13 10:35:56 +02:00
2017-01-26 15:27:37 +01:00
2018-03-26 10:28:19 +02:00
2018-08-06 23:46:55 +02:00
2017-03-06 14:35:22 +01:00
2018-08-10 23:19:17 +02:00
2018-05-16 14:35:24 +02:00
2018-04-27 01:06:21 +02:00
2017-08-23 09:21:54 +02:00
2017-11-08 14:06:21 +01:00
2018-05-23 11:43:03 +02:00
2019-09-19 09:09:33 +02:00
2017-12-22 15:24:31 +01:00
2016-07-04 16:51:29 +02:00
2019-05-04 09:20:21 +02:00
2017-12-20 10:34:58 +01:00
2019-11-20 18:47:22 +01:00
2018-07-13 09:00:08 +02:00
2019-06-22 08:15:16 +02:00
2018-08-20 15:38:44 -07:00