[PATCH] clk: bulk: call of_clk_get() when id is NULL
From: shawnguo@kernel.org (Shawn Guo)
Date: 2017-08-31 07:01:20
Also in:
linux-clk
From: shawnguo@kernel.org (Shawn Guo)
Date: 2017-08-31 07:01:20
Also in:
linux-clk
On Wed, Aug 30, 2017 at 03:31:38PM +0000, A.s. Dong wrote:
IMHO how about implement a of_clk_bulk_get() to handle this issue as we already
have a of_clk_get?
e.g.
int __must_check of_clk_bulk_get(struct device_node *np, int num_clks,
struct clk_bulk_data *clks)
{
for (i = 0; i < num_clks; i++) {
clks[i].clk = of_clk_get(dev, clks[i].id);The of_clk_get() takes clock index rather than name/id as the second parameter. Shawn
... }