Bartosz Golaszewski
d90f36851d
gpiolib: have a single place of calling set_config()
...
Instead of calling the gpiochip's set_config() callback directly and
checking its existence every time - just add a new routine that performs
this check internally. Call it in gpio_set_config() and
gpiod_set_transitory(). Also call it in gpiod_set_debounce() and drop
the check for chip->set() as it's irrelevant to this config option.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
2020-01-07 12:03:28 +01:00
..
2019-12-04 19:44:12 -08:00
2019-11-07 09:27:48 +01:00
2019-12-04 19:44:12 -08:00
2019-12-04 19:44:12 -08:00
2019-11-07 09:27:48 +01:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:29:52 -07:00
2019-07-03 10:24:12 +02:00
2018-01-13 22:22:49 +01:00
2019-11-07 09:27:48 +01:00
2019-07-09 09:07:00 -07:00
2019-08-05 11:42:29 +02:00
2019-09-30 23:54:03 +02:00
2019-11-07 09:27:48 +01:00
2019-10-09 18:20:19 +02:00
2019-12-11 11:06:31 +01:00
2019-11-07 09:27:48 +01:00
2019-12-01 17:56:50 -08:00
2019-08-05 13:25:34 +02:00
2019-05-24 17:36:45 +02:00
2019-08-15 09:44:19 +02:00
2019-05-30 11:26:32 -07:00
2019-09-11 14:50:02 +01:00
2019-02-08 15:55:40 +02:00
2019-07-15 11:03:02 -03:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-15 11:52:34 +02:00
2019-11-07 09:27:48 +01:00
2019-07-31 00:57:21 +02:00
2019-10-01 11:50:40 +02:00
2019-11-13 13:47:48 +01:00
2019-09-04 10:59:10 +02:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-08-23 12:02:34 +02:00
2018-05-16 14:35:24 +02:00
2019-12-04 19:44:12 -08:00
2019-08-05 13:25:34 +02:00
2019-02-09 11:33:37 +01:00
2019-08-15 09:57:29 +02:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-10-15 01:18:51 +02:00
2019-07-15 21:10:39 -07:00
2019-06-05 17:37:00 +02:00
2019-09-03 16:04:19 +02:00
2019-07-09 09:07:00 -07:00
2019-11-07 09:27:48 +01:00
2019-04-05 00:04:26 +07:00
2019-10-31 15:03:10 -07:00
2019-11-07 09:27:48 +01:00
2019-06-05 17:37:10 +02:00
2019-11-07 09:27:48 +01:00
2019-04-05 00:04:26 +07:00
2019-08-15 21:33:07 +02:00
2019-11-21 15:01:57 +01:00
2019-11-07 09:27:48 +01:00
2019-06-19 17:09:55 +02:00
2019-07-09 09:07:00 -07:00
2019-12-04 19:44:13 -08:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-12-01 17:56:50 -08:00
2019-07-29 00:03:52 +02:00
2019-07-31 00:57:21 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:29:19 -07:00
2019-11-03 19:54:53 +01:00
2019-11-13 15:30:53 +02:00
2019-05-30 11:26:39 -07:00
2019-04-08 08:47:06 +02:00
2019-06-19 17:09:55 +02:00
2019-11-13 13:49:42 +01:00
2019-11-12 16:30:30 +01:00
2019-11-07 09:27:48 +01:00
2019-11-21 14:30:08 +01:00
2019-06-05 17:37:06 +02:00
2019-02-08 15:55:41 +02:00
2019-08-23 12:05:06 +02:00
2019-12-11 11:06:06 +01:00
2019-10-01 11:24:18 +02:00
2019-11-07 09:27:48 +01:00
2019-04-05 00:04:27 +07:00
2019-11-07 09:27:48 +01:00
2019-05-30 11:29:52 -07:00
2019-12-11 10:49:14 +01:00
2019-05-24 17:36:45 +02:00
2019-07-23 18:59:05 +03:00
2019-12-04 19:44:12 -08:00
2019-12-04 19:44:12 -08:00
2019-12-04 19:44:13 -08:00
2019-11-07 09:27:48 +01:00
2019-08-05 13:25:34 +02:00
2019-06-19 17:09:55 +02:00
2019-11-07 09:27:48 +01:00
2019-05-30 11:29:52 -07:00
2019-11-12 16:30:30 +01:00
2019-10-29 15:12:52 +01:00
2019-05-24 17:36:45 +02:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-12-12 17:09:50 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2018-12-07 17:34:08 +02:00
2019-04-05 00:04:27 +07:00
2019-08-05 13:25:34 +02:00
2019-06-05 17:37:06 +02:00
2019-11-07 09:27:48 +01:00
2019-07-09 09:07:00 -07:00
2019-05-30 11:26:32 -07:00
2019-12-12 17:09:50 +01:00
2019-11-07 09:27:48 +01:00
2019-11-12 16:31:17 +01:00
2019-12-20 10:58:23 +01:00
2019-11-07 09:27:48 +01:00
2019-05-30 11:29:19 -07:00
2019-11-07 09:27:48 +01:00
2018-09-04 08:22:47 +02:00
2019-11-07 09:27:48 +01:00
2019-05-24 17:39:01 +02:00
2018-09-04 08:22:47 +02:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-04-05 00:04:28 +07:00
2019-11-07 09:27:48 +01:00
2018-09-04 08:22:47 +02:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-06-19 17:09:55 +02:00
2019-12-04 19:44:12 -08:00
2019-08-23 09:41:18 +02:00
2019-08-05 11:26:58 +02:00
2019-06-27 15:56:51 +01:00
2018-09-17 10:55:24 -07:00
2019-11-07 09:27:48 +01:00
2018-01-09 14:51:00 +01:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2019-12-04 19:44:12 -08:00
2019-07-31 00:57:21 +02:00
2019-11-07 09:27:48 +01:00
2019-11-08 14:25:12 +01:00
2019-07-09 09:07:00 -07:00
2019-08-15 09:55:07 +02:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-06-19 17:09:55 +02:00
2019-08-23 09:40:44 +02:00
2019-11-07 09:27:48 +01:00
2019-12-01 17:56:50 -08:00
2019-09-10 11:34:20 +01:00
2019-04-08 11:20:12 +02:00
2019-10-03 12:04:28 +02:00
2018-09-25 09:08:48 +02:00
2019-11-22 13:55:16 +01:00
2019-09-11 14:45:01 +01:00
2018-09-25 09:08:48 +02:00
2020-01-07 12:03:28 +01:00
2019-11-12 16:30:30 +01:00
2019-12-01 17:56:50 -08:00
2019-10-29 16:17:23 +01:00
2019-11-22 14:46:52 +01:00