From: Stephen Boyd <sboyd@codeaurora.org>
To: dinguyen@opensource.altera.com
Cc: mturquette@linaro.org, dinh.linux@gmail.com,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCHv3 1/2] clk: of: helper for filling parent clock array and return num of parents
Date: Fri, 5 Jun 2015 18:11:45 -0700 [thread overview]
Message-ID: <20150606011145.GD29237@codeaurora.org> (raw)
In-Reply-To: <1433521574-31052-2-git-send-email-dinguyen@opensource.altera.com>
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
next prev parent reply other threads:[~2015-06-06 1:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-05 16:26 [PATCHv3 0/2] clk: of: add helper function to fill parent clock array dinguyen
2015-06-05 16:26 ` [PATCHv3 1/2] clk: of: helper for filling parent clock array and return num of parents dinguyen
2015-06-06 1:11 ` Stephen Boyd [this message]
2015-06-05 16:26 ` [PATCHv3 2/2] clk: socfpga: make use of of_clk_parent_fill helper function dinguyen
2015-06-06 1:11 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150606011145.GD29237@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=dinguyen@opensource.altera.com \
--cc=dinh.linux@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).