From: Prashant Gaikwad <pgaikwad@nvidia.com>
To: Peter De Schrijver <pdeschrijver@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>,
Mike Turquette <mturquette@linaro.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] clk: tegra: local arrays should be static
Date: Fri, 8 Feb 2013 10:52:20 +0530 [thread overview]
Message-ID: <51148B8C.2000005@nvidia.com> (raw)
In-Reply-To: <1360254640-25831-1-git-send-email-pdeschrijver@nvidia.com>
On Thursday 07 February 2013 10:00 PM, Peter De Schrijver wrote:
> cclk_g_parents, cclk_lp_parents and sclk_parents are only accessed from within
> clk-tegra30.c. Declare them static to avoid namespace polution.
>
> Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
> ---
> drivers/clk/tegra/clk-tegra30.c | 20 ++++++++++----------
> 1 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c
> index a163812..d169ef0 100644
> --- a/drivers/clk/tegra/clk-tegra30.c
> +++ b/drivers/clk/tegra/clk-tegra30.c
> @@ -1249,16 +1249,16 @@ static void __init tegra30_pmc_clk_init(void)
>
> }
>
> -const char *cclk_g_parents[] = { "clk_m", "pll_c", "clk_32k", "pll_m",
> - "pll_p_cclkg", "pll_p_out4_cclkg",
> - "pll_p_out3_cclkg", "unused", "pll_x" };
> -const char *cclk_lp_parents[] = { "clk_m", "pll_c", "clk_32k", "pll_m",
> - "pll_p_cclklp", "pll_p_out4_cclklp",
> - "pll_p_out3_cclklp", "unused", "pll_x",
> - "pll_x_out0" };
> -const char *sclk_parents[] = { "clk_m", "pll_c_out1", "pll_p_out4",
> - "pll_p_out3", "pll_p_out2", "unused",
> - "clk_32k", "pll_m_out1" };
> +static const char *cclk_g_parents[] = { "clk_m", "pll_c", "clk_32k", "pll_m",
> + "pll_p_cclkg", "pll_p_out4_cclkg",
> + "pll_p_out3_cclkg", "unused", "pll_x" };
> +static const char *cclk_lp_parents[] = { "clk_m", "pll_c", "clk_32k", "pll_m",
> + "pll_p_cclklp", "pll_p_out4_cclklp",
> + "pll_p_out3_cclklp", "unused", "pll_x",
> + "pll_x_out0" };
> +static const char *sclk_parents[] = { "clk_m", "pll_c_out1", "pll_p_out4",
> + "pll_p_out3", "pll_p_out2", "unused",
> + "clk_32k", "pll_m_out1" };
>
> static void __init tegra30_super_clk_init(void)
> {
prev parent reply other threads:[~2013-02-08 5:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-07 16:30 [PATCH] clk: tegra: local arrays should be static Peter De Schrijver
2013-02-07 17:49 ` Mike Turquette
2013-02-07 19:13 ` Stephen Warren
2013-02-08 5:22 ` Prashant Gaikwad [this message]
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=51148B8C.2000005@nvidia.com \
--to=pgaikwad@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=pdeschrijver@nvidia.com \
--cc=swarren@nvidia.com \
/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).