linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Uwe Kleine-König" <uwe@kleine-koenig.org>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH v2] input: misc: max8997: Simplify open coding of a division using up to 64 divisions
Date: Tue, 23 Mar 2021 11:40:01 -0700	[thread overview]
Message-ID: <YFo2AUJ8OeOyTx/D@google.com> (raw)
In-Reply-To: <20210316212233.50765-1-uwe@kleine-koenig.org>

On Tue, Mar 16, 2021 at 10:22:33PM +0100, Uwe Kleine-König wrote:
> The for loop is just a complicate way to express a division. Replace it
> by the actual division which is both simpler to understand for a human
> and more efficient for a CPU to calculate.
> 
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>

Applied, thank you.

-- 
Dmitry

      reply	other threads:[~2021-03-23 18:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 21:18 [PATCH] input: misc: max8997: Simplify open coding of a division using up to 64 divisions Uwe Kleine-König
2021-03-16 21:22 ` [PATCH v2] " Uwe Kleine-König
2021-03-23 18: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=YFo2AUJ8OeOyTx/D@google.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=uwe@kleine-koenig.org \
    /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).