summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2019-12-24 15:06:58 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-01-07 14:03:28 +0300
commitd90f36851d6595136b461773846b76e0c45e3e0c (patch)
tree6dee4ab64d6a5c014c71c00cddcb3df1d32cd9e5 /net/unix/af_unix.c
parenta9001764c6fad9baf24172a4f585f7dcd6214c04 (diff)
downloadlinux-d90f36851d6595136b461773846b76e0c45e3e0c.tar.xz
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions