All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] Input: analog: Always use ktime functions
Date: Wed, 8 Sep 2021 23:40:49 -0700	[thread overview]
Message-ID: <YTmscXQO3HaGxi6z@google.com> (raw)
In-Reply-To: <a07d3486-ab7e-24c1-63f9-b1566636015c@roeck-us.net>

On Tue, Sep 07, 2021 at 07:29:36PM -0700, Guenter Roeck wrote:
> On 9/7/21 6:43 PM, Dmitry Torokhov wrote:
> > Hi Guenter,
> > 
> > On Tue, Sep 07, 2021 at 05:37:34AM -0700, Guenter Roeck wrote:
> > > @@ -241,11 +176,11 @@ static int analog_cooked_read(struct analog_port *port)
> > >   	int i, j;
> > >   	loopout = (ANALOG_LOOP_TIME * port->loop) / 1000;
> > > -	timeout = ANALOG_MAX_TIME * port->speed;
> > > +	timeout = ANALOG_MAX_TIME * NSEC_PER_MSEC;
> > >   	local_irq_save(flags);
> > >   	gameport_trigger(gameport);
> > > -	now = get_time();
> > > +	now = ktime_get();
> > 
> > There are time[4], now, etc variables above this block that are u64. I
> > think they can be make ktime_t. I can do it myself if you agree.
> > 
> Sure.
> 
> > > @@ -378,35 +313,19 @@ static void analog_calibrate_timer(struct analog_port *port)
> > >   	u64 t1, t2, t3;
> > 
> > I think these should also be ktime_t.
> > 
> Ok. Do you want me to resend or are you going to make the changes ?

I made the changes and applied, thank you.

-- 
Dmitry

      reply	other threads:[~2021-09-09  6:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 12:37 [PATCH v3] Input: analog: Always use ktime functions Guenter Roeck
2021-09-07 12:41 ` Geert Uytterhoeven
2021-09-08  0:52 ` Randy Dunlap
2021-09-08  1:43 ` Dmitry Torokhov
2021-09-08  2:29   ` Guenter Roeck
2021-09-09  6:40     ` Dmitry Torokhov [this message]

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=YTmscXQO3HaGxi6z@google.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.