Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1159805

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

From Stephen Boyd <sboyd@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCHv3 1/2] clk: of: helper for filling parent clock array and return num of parents
Date 2015-06-06 03:20 +0200
Message-ID <pyaWe-1km-13@gated-at.bofh.it> (permalink)
References <pyaWd-1km-3@gated-at.bofh.it> <pyaWe-1km-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 06/05, dinguyen@opensource.altera.com wrote:
> From: Dinh Nguyen <dinguyen@opensource.altera.com>
> 
> 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@opensource.altera.com>
> ---

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCHv3 1/2] clk: of: helper for filling parent clock array and  return num of parents Stephen Boyd <sboyd@codeaurora.org> - 2015-06-06 03:20 +0200

csiph-web