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-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2018-05-16 14:35:24 +02:00
2019-11-07 09:27:48 +01:00
2019-09-03 16:04:19 +02:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-07-23 18:59:05 +03: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-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2018-01-09 14:51:00 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-10-29 16:17:23 +01:00
2019-11-22 14:46:52 +01:00