mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-04 09:39:03 +00:00
gpiolib: cdev: remove redundant store of debounce_period_us
debounce_setup() stores the debounce_period_us if the driver supports debounce, but the debounce_period_us is also stored where debounce_setup() is called, independent of whether the debounce is being perfomed by hardware or software. Remove the redundant storing of the debounce_period_us in debounce_setup(). Signed-off-by: Kent Gibson <warthog618@gmail.com> Link: https://lore.kernel.org/r/20241020115238.170994-1-warthog618@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
3aba840291
commit
9eb1e82761
@ -929,10 +929,6 @@ static int debounce_setup(struct line *line, unsigned int debounce_period_us)
|
||||
ret = gpio_do_set_config(line->desc,
|
||||
pinconf_to_config_packed(PIN_CONFIG_INPUT_DEBOUNCE,
|
||||
debounce_period_us));
|
||||
if (!ret) {
|
||||
WRITE_ONCE(line->desc->debounce_period_us, debounce_period_us);
|
||||
return ret;
|
||||
}
|
||||
if (ret != -ENOTSUPP)
|
||||
return ret;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user