Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753288Ab0ALO1y (ORCPT ); Tue, 12 Jan 2010 09:27:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752190Ab0ALO1x (ORCPT ); Tue, 12 Jan 2010 09:27:53 -0500 Received: from trinity.fluff.org ([89.16.178.74]:33812 "EHLO trinity.fluff.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445Ab0ALO1w (ORCPT ); Tue, 12 Jan 2010 09:27:52 -0500 Date: Tue, 12 Jan 2010 14:27:47 +0000 From: Ben Dooks To: Russell King - ARM Linux Cc: Francesco VIRLINZI , Jeremy Kerr , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC,PATCH 1/7 v2] Add a common struct clk Message-ID: <20100112142747.GE18532@trinity.fluff.org> References: <1263279511.160551.332624337260.1.gpush@pororo> <4B4C376C.6080705@st.com> <20100112090149.GB26435@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100112090149.GB26435@n2100.arm.linux.org.uk> X-Disclaimer: These are my views alone. X-URL: http://www.fluff.org/ User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ben@trinity.fluff.org X-SA-Exim-Scanned: No (on trinity.fluff.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 33 On Tue, Jan 12, 2010 at 09:01:49AM +0000, Russell King - ARM Linux wrote: > On Tue, Jan 12, 2010 at 09:48:44AM +0100, Francesco VIRLINZI wrote: > > Hi Jeremy > > In November I already sent a proposal on > > a generic linux clk framework. > > On that I would suggest: > > > >> > >> +struct clk { > >> + const struct clk_operations *ops; > >> > > spinlock_t lock; > > const char *name; > > int id; > > Name and ID are totally pointless, unless you insist on using the clk > API in the wrong way (like S3C does.) I assume by this you mean that a number of the s3c drives use clk_get with their platform device and a name? if so, I agree this needs to get sorted out. -- Ben Q: What's a light-year? A: One-third less calories than a regular year. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/