[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140630194949.GB5167@dator>
Date: Mon, 30 Jun 2014 21:49:49 +0200
From: Rabin Vincent <rabin@....in>
To: Stephen Warren <swarren@...dotorg.org>
Cc: Tomeu Vizoso <tomeu.vizoso@...labora.com>,
Thierry Reding <thierry.reding@...il.com>,
Mike Turquette <mturquette@...aro.org>,
linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [RFC 4/5] clk: per-user clock accounting for debug
On Fri, Jun 27, 2014 at 04:44:24PM -0600, Stephen Warren wrote:
> On 06/27/2014 01:57 AM, Tomeu Vizoso wrote:
> > struct clk {
> > - struct clk_core clk;
> > + struct clk_core *core;
> > + unsigned int enable_count;
> > + const char *dev_id;
> > + const char *con_id;
>
> Why not just store the "struct device *" there instead of pulling the
> name out of it, so ...
Probably because not all of the [of_]clk_get[_sys]() variants supply a
struct device *.
--
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