diff options
author | Kent Gibson <warthog618@gmail.com> | 2021-01-21 17:10:38 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2021-01-27 17:52:13 +0300 |
commit | 03a58ea5905fdbd93ff9e52e670d802600ba38cd (patch) | |
tree | 1f781709cac86d3590880edd0dea7df6339e4db1 /mm/zswap.c | |
parent | 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04 (diff) | |
download | linux-03a58ea5905fdbd93ff9e52e670d802600ba38cd.tar.xz |
gpiolib: cdev: clear debounce period if line set to output
When set_config changes a line from input to output debounce is
implicitly disabled, as debounce makes no sense for outputs, but the
debounce period is not being cleared and is still reported in the
line info.
So clear the debounce period when the debouncer is stopped in
edge_detector_stop().
Fixes: 65cff7046406 ("gpiolib: cdev: support setting debounce")
Cc: stable@vger.kernel.org
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'mm/zswap.c')
0 files changed, 0 insertions, 0 deletions