[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080415101113.GD7506@doriath.ww600.siemens.net>
Date: Tue, 15 Apr 2008 14:11:13 +0400
From: Dmitry Baryshkov <dbaryshkov@...il.com>
To: Pavel Machek <pavel@....cz>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
Haavard Skinnemoen <haavard.skinnemoen@...el.com>,
Russell King <rmk+lkml@....linux.org.uk>,
Paul Mundt <lethal@...ux-sh.org>,
pHilipp Zabel <philipp.zabel@...il.com>, tony@...mide.com,
paul@...an.com, David Brownell <david-b@...bell.net>
Subject: Re: [PATCH 1/5] Clocklib: add generic framework for managing
clocks.
On Tue, Apr 15, 2008 at 11:53:32AM +0200, Pavel Machek wrote:
> > On Tue, 15 Apr 2008 13:34:51 +0400 Dmitry Baryshkov <dbaryshkov@...il.com> wrote:
> >
> > > On Mon, Apr 14, 2008 at 11:13:30PM -0700, Andrew Morton wrote:
> > > > On Sun, 13 Apr 2008 18:43:12 +0400 Dmitry Baryshkov <dbaryshkov@...il.com> wrote:
> > > >
> > > > > +#define FUNC_TO_CLK(func) &(&(struct clk_function) func)->clk
> > > >
> > > > scratched my head for a while, was unable to work out what this does.
> > > > It is unused, so I think it can be zapped?
> > >
> > > It take clk_function and returns pointer to the contained struct clk.
> >
> > Then why does it cast a clk_function to a clk_function?
> >
> > The innermost `&' hurts my brain.
>
> Hmm, is that obfuscated way of writing
>
> &(func.clk)
Oops... Yes. Then it really can be dropped.
>
> ?
> Pavel
>
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
With best wishes
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists