Skip to content

Commit 7f7573b

Browse files
dmantipovdtor
authored andcommitted
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: 0b65118 ("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>
1 parent 496b7d2 commit 7f7573b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/misc/pm8941-pwrkey.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ static irqreturn_t pm8941_pwrkey_irq(int irq, void *_data)
154154
if (pwrkey->sw_debounce_time_us) {
155155
if (ktime_before(ktime_get(), pwrkey->sw_debounce_end_time)) {
156156
dev_dbg(pwrkey->dev,
157-
"ignoring key event received before debounce end %llu us\n",
158-
pwrkey->sw_debounce_end_time);
157+
"ignoring key event received before debounce end %lld us\n",
158+
ktime_to_us(pwrkey->sw_debounce_end_time));
159159
return IRQ_HANDLED;
160160
}
161161
}

0 commit comments

Comments
 (0)