Re: [PATCHv3 1/2] clk: of: helper for filling parent clock array and return num of parents

From: Stephen Boyd
Date: Fri Jun 05 2015 - 21:12:05 EST


On 06/05, dinguyen@xxxxxxxxxxxxxxxxxxxxx wrote:
> From: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx>
>
> Sprinkled all through the platform clock drivers are code like this to
> fill the clock parent array:
>
> for (i = 0; i < num_parents; ++i)
> parent_names[i] = of_clk_get_parent_name(np, i);
>
> The of_clk_parent_fill() will do the same as the code above, and while
> at it, return the number of parents as well since the logic of the
> function is to the walk the clock node to look for the parent.
>
> Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx>
> ---

Applied to clk-next with some small kernel-doc fixes.

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/