From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mundt Date: Thu, 17 Jul 2008 23:11:59 +0000 Subject: Re: [PATCH] sh: Add SuperH Mobile MSTPCR bits to clock framework Message-Id: <20080717231159.GD17674@linux-sh.org> List-Id: References: <20080717095615.19566.83528.sendpatchset@rx1.opensource.se> In-Reply-To: <20080717095615.19566.83528.sendpatchset@rx1.opensource.se> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org 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.