gpiolib: cdev: relocate debounce_period_us from struct gpio_desc
authorKent Gibson <warthog618@gmail.com>
Tue, 19 Dec 2023 00:41:54 +0000 (08:41 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 19 Dec 2023 08:45:35 +0000 (09:45 +0100)
commit9344e34e7992fec95ce6210d95ac01437dd327ab
tree093e82afdbbced0dd3758c2068eaa44d2052d3ae
parent40aa7e290b8eff56b7235ece108f11e48210f262
gpiolib: cdev: relocate debounce_period_us from struct gpio_desc

Store the debounce period for a requested line locally, rather than in
the debounce_period_us field in the gpiolib struct gpio_desc.

Add a global tree of lines containing supplemental line information
to make the debounce period available to be reported by the
GPIO_V2_GET_LINEINFO_IOCTL and the line change notifier.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-cdev.c