linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Collins <quic_collinsd@quicinc.com>
To: Dmitry Antipov <dmantipov@yandex.ru>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
	"Anjelique Melendez" <quic_amelende@quicinc.com>,
	linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCH] input: pm8941-pwrkey: fix dev_dbg() output in pm8941_pwrkey_irq()
Date: Fri, 21 Feb 2025 10:46:39 -0800	[thread overview]
Message-ID: <96ee882b-ecfc-4845-ad82-dde82d3d51e6@quicinc.com> (raw)
In-Reply-To: <20250216170336.861025-1-dmantipov@yandex.ru>

On 2/16/25 09:03, Dmitry Antipov wrote:
> 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>

Thanks for making this fix.

Take care,
David Collins

> ---
>  drivers/input/misc/pm8941-pwrkey.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/input/misc/pm8941-pwrkey.c b/drivers/input/misc/pm8941-pwrkey.c
> index d0c46665e527..d952c16f2458 100644
> --- a/drivers/input/misc/pm8941-pwrkey.c
> +++ b/drivers/input/misc/pm8941-pwrkey.c
> @@ -154,8 +154,8 @@ static irqreturn_t pm8941_pwrkey_irq(int irq, void *_data)
>  	if (pwrkey->sw_debounce_time_us) {
>  		if (ktime_before(ktime_get(), pwrkey->sw_debounce_end_time)) {
>  			dev_dbg(pwrkey->dev,
> -				"ignoring key event received before debounce end %llu us\n",
> -				pwrkey->sw_debounce_end_time);
> +				"ignoring key event received before debounce end %lld us\n",
> +				ktime_to_us(pwrkey->sw_debounce_end_time));
>  			return IRQ_HANDLED;
>  		}
>  	}


  reply	other threads:[~2025-02-21 18:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-16 17:03 [PATCH] input: pm8941-pwrkey: fix dev_dbg() output in pm8941_pwrkey_irq() Dmitry Antipov
2025-02-21 18:46 ` David Collins [this message]
2025-02-25 20:59 ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96ee882b-ecfc-4845-ad82-dde82d3d51e6@quicinc.com \
    --to=quic_collinsd@quicinc.com \
    --cc=dmantipov@yandex.ru \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=quic_amelende@quicinc.com \
    --cc=u.kleine-koenig@baylibre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).