From: Dinh Nguyen Date: Fri, 5 Jun 2015 16:26:13 +0000 (-0500) Subject: clk: of: helper for filling parent clock array and return num of parents X-Git-Tag: omap-for-v4.3/legacy-v2-signed~79^2~18^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e61dfb3602b904966491f260f62c01b9895936a;p=pandora-kernel.git clk: of: helper for filling parent clock array and return num of parents 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 [sboyd@codeaurora.org: Fixed kernel-doc] Signed-off-by: Stephen Boyd --- Reading git-diff-tree failed