]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: acpi: Convert ACPI value of debounce to microseconds
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 Mar 2022 11:56:23 +0000 (13:56 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 7 Mar 2022 14:25:27 +0000 (15:25 +0100)
commit02f910628c1e7dd910300a85d4d5c9ae6fd3eea7
tree515bdab41af98194a4eb1677d9627fc63e0fbcfd
parent7cf59f6c593509b6e73a40de44999ab61fc597b0
gpiolib: acpi: Convert ACPI value of debounce to microseconds

It appears that GPIO ACPI library uses ACPI debounce values directly.
However, the GPIO library APIs expect the debounce timeout to be in
microseconds.

Convert ACPI value of debounce to microseconds.

While at it, document this detail where it is appropriate.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215664
Reported-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Fixes: 2c28dfb4dc83 ("gpiolib: acpi: Take into account debounce settings")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib-acpi.c
drivers/gpio/gpiolib.c