From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764070AbYDOKLh (ORCPT ); Tue, 15 Apr 2008 06:11:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753871AbYDOKL3 (ORCPT ); Tue, 15 Apr 2008 06:11:29 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:13203 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752361AbYDOKL2 (ORCPT ); Tue, 15 Apr 2008 06:11:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=HId2hD40Hv+FcRhzm+EhYXGyHdROWOwGkZFBYQvd4vGzHq/Vg3E4QA4/xcv83jWZgkQtMQv+JDsoQs4ZZN9fAXOSXUhJp5rYbKe5pcj0oaRG7d7Er7UeisQlZCr32h6+OrvgProM+64fRB6CzvWTmyhaO9adZTjggKqzZPY2Y38= Date: Tue, 15 Apr 2008 14:11:13 +0400 From: Dmitry Baryshkov To: Pavel Machek Cc: Andrew Morton , linux-kernel@vger.kernel.org, Haavard Skinnemoen , Russell King , Paul Mundt , pHilipp Zabel , tony@atomide.com, paul@pwsan.com, David Brownell Subject: Re: [PATCH 1/5] Clocklib: add generic framework for managing clocks. Message-ID: <20080415101113.GD7506@doriath.ww600.siemens.net> References: <20080413144138.GA31665@doriath.ww600.siemens.net> <20080413144312.GA1943@doriath.ww600.siemens.net> <20080414231330.b72cd746.akpm@linux-foundation.org> <20080415093451.GA6377@doriath.ww600.siemens.net> <20080415024743.51aeac8c.akpm@linux-foundation.org> <20080415095332.GB32652@atrey.karlin.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080415095332.GB32652@atrey.karlin.mff.cuni.cz> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 15, 2008 at 11:53:32AM +0200, Pavel Machek wrote: > > On Tue, 15 Apr 2008 13:34:51 +0400 Dmitry Baryshkov 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 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