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)
commit660c619b9d7ccd28648ee3766cdbe94ec7b27402
tree515bdab41af98194a4eb1677d9627fc63e0fbcfd
parentfc328a7d1fcce263db0b046917a66f3aa6e68719
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: 8dcb7a15a585 ("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