Re: [PATCH 05/10] clkdev: add clkdev_create() helper

2015-03-02 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 11:07:58AM -0800, Stephen Boyd wrote: On 03/02/15 09:06, Russell King wrote: Add a helper to allocate and add a clk_lookup structure. This can not only be used in several places in clkdev.c to simplify the code, but more importantly, can be used by callers of the

Re: [PATCH 05/10] clkdev: add clkdev_create() helper

2015-03-02 Thread Stephen Boyd
On 03/02/15 13:01, Russell King - ARM Linux wrote: On Mon, Mar 02, 2015 at 11:07:58AM -0800, Stephen Boyd wrote: On 03/02/15 09:06, Russell King wrote: Add a helper to allocate and add a clk_lookup structure. This can not only be used in several places in clkdev.c to simplify the code, but

Re: [PATCH 05/10] clkdev: add clkdev_create() helper

2015-03-02 Thread Geert Uytterhoeven
On Mon, Mar 2, 2015 at 6:46 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Mon, Mar 02, 2015 at 06:22:31PM +0100, Geert Uytterhoeven wrote: On Mon, Mar 2, 2015 at 6:06 PM, Russell King rmk+ker...@arm.linux.org.uk wrote: --- a/include/linux/clkdev.h +++

[PATCH 05/10] clkdev: add clkdev_create() helper

2015-03-02 Thread Russell King
Add a helper to allocate and add a clk_lookup structure. This can not only be used in several places in clkdev.c to simplify the code, but more importantly, can be used by callers of the clkdev code to simplify their clkdev creation and registration. Signed-off-by: Russell King

Re: [PATCH 05/10] clkdev: add clkdev_create() helper

2015-03-02 Thread Geert Uytterhoeven
On Mon, Mar 2, 2015 at 6:06 PM, Russell King rmk+ker...@arm.linux.org.uk wrote: --- a/include/linux/clkdev.h +++ b/include/linux/clkdev.h @@ -37,6 +37,9 @@ struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id, void clkdev_add(struct clk_lookup *cl); void clkdev_drop(struct

Re: [PATCH 05/10] clkdev: add clkdev_create() helper

2015-03-02 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 06:22:31PM +0100, Geert Uytterhoeven wrote: On Mon, Mar 2, 2015 at 6:06 PM, Russell King rmk+ker...@arm.linux.org.uk wrote: --- a/include/linux/clkdev.h +++ b/include/linux/clkdev.h @@ -37,6 +37,9 @@ struct clk_lookup *clkdev_alloc(struct clk *clk, const char

Re: [PATCH 05/10] clkdev: add clkdev_create() helper

2015-03-02 Thread Stephen Boyd
On 03/02/15 09:06, Russell King wrote: Add a helper to allocate and add a clk_lookup structure. This can not only be used in several places in clkdev.c to simplify the code, but more importantly, can be used by callers of the clkdev code to simplify their clkdev creation and registration.