From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v2 28/40] clocksource: sh_tmu: Add index to struct sh_tmu_channel
Date: Sun, 02 Mar 2014 20:22:03 +0000 [thread overview]
Message-ID: <1616978.WRnLkMEibb@avalon> (raw)
In-Reply-To: <1393603090-23144-29-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
Hi Geert,
Thank you for the review.
On Friday 28 February 2014 18:58:00 Geert Uytterhoeven wrote:
> On Fri, Feb 28, 2014 at 4:57 PM, Laurent Pinchart wrote:
> > + /*
> > + * The SH3 variant (SH770x, SH7705, SH7710 and SH7720) maps
> > channel
> > + * registers blocks at base + 2 + 12 * index, while all other
> > variants
> > + * map them at base + 4 + 12 * index. We can compute the index
> > with a
> > + * single equation, the 2 bytes difference is hidden by the / 12.
> > + */
> > + ch->index = (cfg->channel_offset - 2) / 12;
>
> The "- 2" is not needed, as 2 / 12 = 0 in integer arithmetic.
I'll fix that in v3.
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2014-03-02 20:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 15:57 [PATCH v2 28/40] clocksource: sh_tmu: Add index to struct sh_tmu_channel Laurent Pinchart
2014-02-28 17:58 ` Geert Uytterhoeven
2014-03-02 20:22 ` Laurent Pinchart [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=1616978.WRnLkMEibb@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-sh@vger.kernel.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