]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: pm8941-pwrkey - fix dev_dbg() output in pm8941_pwrkey_irq()
authorDmitry Antipov <dmantipov@yandex.ru>
Sun, 16 Feb 2025 17:03:36 +0000 (20:03 +0300)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 25 Feb 2025 20:58:54 +0000 (12:58 -0800)
commit7f7573bd4f37d4edc168c5b5def0bc2a1951c657
tree93ff5d751aa56541b8f048cbf4ca94914098600d
parent496b7d2e5b936e3e8eae651b51db8a2f9cf0f8b8
Input: pm8941-pwrkey - fix dev_dbg() output in pm8941_pwrkey_irq()

Since 'sw_debounce_end_time' of 'struct pm8941_pwrkey' is of type
'ktime_t', use 'ktime_to_us()' to print the value in microseconds
as it is announced in a call to 'dev_dbg()'. Compile tested only.

Fixes: 0b65118e6ba3 ("Input: pm8941-pwrkey - add software key press debouncing support")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: David Collins <quic_collinsd@quicinc.com>
Link: https://lore.kernel.org/r/20250216170336.861025-1-dmantipov@yandex.ru
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pm8941-pwrkey.c