]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpiolib: cdev: remove redundant store of debounce_period_us
authorKent Gibson <warthog618@gmail.com>
Sun, 20 Oct 2024 11:52:38 +0000 (19:52 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 22 Oct 2024 07:15:30 +0000 (09:15 +0200)
commit9eb1e8276155b9f540281f2dbf59885efbb9f09f
treef0268752bd66ef90477c50e770151d9194f99d0b
parent3aba8402910bfab998d5cf6c84744de5db466936
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>
drivers/gpio/gpiolib-cdev.c