Re: [PATCH v9 2/3] clk: Make clk API return per-user struct clk instances

2015-01-20 Thread Tomeu Vizoso
On 19 January 2015 at 21:59, Stephen Boyd sb...@codeaurora.org wrote: On 01/19, Tomeu Vizoso wrote: diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 97f3425..f2a1ff3 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -694,32 +751,32 @@ long __clk_mux_determine_rate(struct

[PATCH v9 2/3] clk: Make clk API return per-user struct clk instances

2015-01-19 Thread Tomeu Vizoso
Moves clock state to struct clk_core, but takes care to change as little API as possible. struct clk_hw still has a pointer to a struct clk, which is the implementation's per-user clk instance, for backwards compatibility. The struct clk that clk_get_parent() returns isn't owned by the caller,

Re: [PATCH v9 2/3] clk: Make clk API return per-user struct clk instances

2015-01-19 Thread Stephen Boyd
On 01/19, Tomeu Vizoso wrote: diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 97f3425..f2a1ff3 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -694,32 +751,32 @@ long __clk_mux_determine_rate(struct clk_hw *hw, unsigned long rate, unsigned