From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: Add SuperH Mobile MSTPCR bits to clock framework
Date: Thu, 17 Jul 2008 23:11:59 +0000 [thread overview]
Message-ID: <20080717231159.GD17674@linux-sh.org> (raw)
In-Reply-To: <20080717095615.19566.83528.sendpatchset@rx1.opensource.se>
On Fri, Jul 18, 2008 at 07:41:21AM +0900, Paul Mundt wrote:
> On Thu, Jul 17, 2008 at 06:56:15PM +0900, Magnus Damm wrote:
> > +#define DECLARE_MSTPCRN(regnr, bitnr, bitstr) \
> > +{ \
> > + .name = "mstp" __stringify(regnr) bitstr, \
> > + .arch_flags = bitnr, \
> > + .ops = &sh7722_mstpcr ## regnr ## _clk_ops, \
> > +}
> > +
> > +#define DECLARE_MSTPCR(regnr) \
> > + DECLARE_MSTPCRN(regnr, 31, "31"), \
>
> This looks a bit clumsy. Why can't you __stringify bitnr and paste that
> against the stringified regnr? You may not be able to use the helper
> macros directly, but you can certainly abuse the pre-processor in such a
> way.
I've applied the series as it is, though it would be good to get this
fixed up in a follow-up patch.
next prev parent reply other threads:[~2008-07-17 23:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-17 9:56 [PATCH] sh: Add SuperH Mobile MSTPCR bits to clock framework Magnus Damm
2008-07-17 22:41 ` Paul Mundt
2008-07-17 23:11 ` Paul Mundt [this message]
2008-07-18 1:14 ` Magnus Damm
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=20080717231159.GD17674@linux-sh.org \
--to=lethal@linux-sh.org \
--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