diff mbox

[1/1] clk: exynos5420: Staticize local variables

Message ID 1400673482-16287-1-git-send-email-sachin.kamat@linaro.org
State New
Headers show

Commit Message

Sachin Kamat May 21, 2014, 11:58 a.m. UTC
Local symbols are made static.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/clk/samsung/clk-exynos5420.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Sachin Kamat May 26, 2014, 3:39 a.m. UTC | #1
On 21 May 2014 17:28, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Local symbols are made static.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/clk/samsung/clk-exynos5420.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c
> index 9d7d7eed03fd..41b507baf5d6 100644
> --- a/drivers/clk/samsung/clk-exynos5420.c
> +++ b/drivers/clk/samsung/clk-exynos5420.c
> @@ -474,7 +474,7 @@ static struct samsung_fixed_factor_clock
>         FFACTOR(0, "ff_dout_spll2", "mout_sclk_spll", 1, 2, 0),
>  };
>
> -struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
> +static struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>         MUX(0, "mout_aclk400_isp", mout_group3_5800_p, SRC_TOP0, 0, 3),
>         MUX(0, "mout_aclk400_mscl", mout_group3_5800_p, SRC_TOP0, 4, 3),
>         MUX(0, "mout_aclk400_wcore", mout_group2_5800_p, SRC_TOP0, 16, 3),
> @@ -523,7 +523,7 @@ struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>         MUX(0, "mout_fimd1", mout_group2_p, SRC_DISP10, 4, 3),
>  };
>
> -struct samsung_div_clock exynos5800_div_clks[] __initdata = {
> +static struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore", DIV_TOP0, 16, 3),
>
>         DIV(0, "dout_aclk550_cam", "mout_aclk550_cam",
> @@ -539,14 +539,14 @@ struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>         DIV(0, "dout_sclk_sw", "sclk_spll", DIV_TOP9, 24, 6),
>  };
>
> -struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
> +static struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
>         GATE(CLK_ACLK550_CAM, "aclk550_cam", "mout_user_aclk550_cam",
>                                 GATE_BUS_TOP, 24, 0, 0),
>         GATE(CLK_ACLK432_SCALER, "aclk432_scaler", "mout_user_aclk432_scaler",
>                                 GATE_BUS_TOP, 27, 0, 0),
>  };
>
> -struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
> +static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>         MUX(0, "sclk_bpll", mout_bpll_p, TOP_SPARE2, 0, 1),
>         MUX(0, "mout_aclk400_wcore_bpll", mout_aclk400_wcore_bpll_p,
>                                 TOP_SPARE2, 4, 1),
> @@ -576,7 +576,7 @@ struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>         MUX(0, "mout_fimd1", mout_group3_p, SRC_DISP10, 4, 1),
>  };
>
> -struct samsung_div_clock exynos5420_div_clks[] __initdata = {
> +static struct samsung_div_clock exynos5420_div_clks[] __initdata = {
>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore_bpll",
>                         DIV_TOP0, 16, 3),
>  };
> --
> 1.7.9.5
>

Gentle ping, Tomasz :)
Sachin Kamat May 28, 2014, 8:01 a.m. UTC | #2
On 21 May 2014 17:28, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Local symbols are made static.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/clk/samsung/clk-exynos5420.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c
> index 9d7d7eed03fd..41b507baf5d6 100644
> --- a/drivers/clk/samsung/clk-exynos5420.c
> +++ b/drivers/clk/samsung/clk-exynos5420.c
> @@ -474,7 +474,7 @@ static struct samsung_fixed_factor_clock
>         FFACTOR(0, "ff_dout_spll2", "mout_sclk_spll", 1, 2, 0),
>  };
>
> -struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
> +static struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>         MUX(0, "mout_aclk400_isp", mout_group3_5800_p, SRC_TOP0, 0, 3),
>         MUX(0, "mout_aclk400_mscl", mout_group3_5800_p, SRC_TOP0, 4, 3),
>         MUX(0, "mout_aclk400_wcore", mout_group2_5800_p, SRC_TOP0, 16, 3),
> @@ -523,7 +523,7 @@ struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>         MUX(0, "mout_fimd1", mout_group2_p, SRC_DISP10, 4, 3),
>  };
>
> -struct samsung_div_clock exynos5800_div_clks[] __initdata = {
> +static struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore", DIV_TOP0, 16, 3),
>
>         DIV(0, "dout_aclk550_cam", "mout_aclk550_cam",
> @@ -539,14 +539,14 @@ struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>         DIV(0, "dout_sclk_sw", "sclk_spll", DIV_TOP9, 24, 6),
>  };
>
> -struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
> +static struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
>         GATE(CLK_ACLK550_CAM, "aclk550_cam", "mout_user_aclk550_cam",
>                                 GATE_BUS_TOP, 24, 0, 0),
>         GATE(CLK_ACLK432_SCALER, "aclk432_scaler", "mout_user_aclk432_scaler",
>                                 GATE_BUS_TOP, 27, 0, 0),
>  };
>
> -struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
> +static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>         MUX(0, "sclk_bpll", mout_bpll_p, TOP_SPARE2, 0, 1),
>         MUX(0, "mout_aclk400_wcore_bpll", mout_aclk400_wcore_bpll_p,
>                                 TOP_SPARE2, 4, 1),
> @@ -576,7 +576,7 @@ struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>         MUX(0, "mout_fimd1", mout_group3_p, SRC_DISP10, 4, 1),
>  };
>
> -struct samsung_div_clock exynos5420_div_clks[] __initdata = {
> +static struct samsung_div_clock exynos5420_div_clks[] __initdata = {
>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore_bpll",
>                         DIV_TOP0, 16, 3),
>  };
> --

Mike,

Tomasz is probably on vacation. Can you please take this patch?
Tomasz Figa May 28, 2014, 11:02 a.m. UTC | #3
Hi Sachin,

On 28.05.2014 10:01, Sachin Kamat wrote:
> On 21 May 2014 17:28, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>> Local symbols are made static.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>> ---
>>  drivers/clk/samsung/clk-exynos5420.c |   10 +++++-----
>>  1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c
>> index 9d7d7eed03fd..41b507baf5d6 100644
>> --- a/drivers/clk/samsung/clk-exynos5420.c
>> +++ b/drivers/clk/samsung/clk-exynos5420.c
>> @@ -474,7 +474,7 @@ static struct samsung_fixed_factor_clock
>>         FFACTOR(0, "ff_dout_spll2", "mout_sclk_spll", 1, 2, 0),
>>  };
>>
>> -struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>> +static struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>>         MUX(0, "mout_aclk400_isp", mout_group3_5800_p, SRC_TOP0, 0, 3),
>>         MUX(0, "mout_aclk400_mscl", mout_group3_5800_p, SRC_TOP0, 4, 3),
>>         MUX(0, "mout_aclk400_wcore", mout_group2_5800_p, SRC_TOP0, 16, 3),
>> @@ -523,7 +523,7 @@ struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>>         MUX(0, "mout_fimd1", mout_group2_p, SRC_DISP10, 4, 3),
>>  };
>>
>> -struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>> +static struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore", DIV_TOP0, 16, 3),
>>
>>         DIV(0, "dout_aclk550_cam", "mout_aclk550_cam",
>> @@ -539,14 +539,14 @@ struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>>         DIV(0, "dout_sclk_sw", "sclk_spll", DIV_TOP9, 24, 6),
>>  };
>>
>> -struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
>> +static struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
>>         GATE(CLK_ACLK550_CAM, "aclk550_cam", "mout_user_aclk550_cam",
>>                                 GATE_BUS_TOP, 24, 0, 0),
>>         GATE(CLK_ACLK432_SCALER, "aclk432_scaler", "mout_user_aclk432_scaler",
>>                                 GATE_BUS_TOP, 27, 0, 0),
>>  };
>>
>> -struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>> +static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>>         MUX(0, "sclk_bpll", mout_bpll_p, TOP_SPARE2, 0, 1),
>>         MUX(0, "mout_aclk400_wcore_bpll", mout_aclk400_wcore_bpll_p,
>>                                 TOP_SPARE2, 4, 1),
>> @@ -576,7 +576,7 @@ struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>>         MUX(0, "mout_fimd1", mout_group3_p, SRC_DISP10, 4, 1),
>>  };
>>
>> -struct samsung_div_clock exynos5420_div_clks[] __initdata = {
>> +static struct samsung_div_clock exynos5420_div_clks[] __initdata = {
>>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore_bpll",
>>                         DIV_TOP0, 16, 3),
>>  };
>> --
> 
> Mike,
> 
> Tomasz is probably on vacation. Can you please take this patch?
> 

Sorry for late reply. Yes, I'm on vacation right now until 9.06, so I'm
going to be less active through this period of time.

As for this patch, I'm not sure if it will apply to Mike's tree, as it
seems to depend on patches that went through Kukjin's tree. Since this
isn't anything critical, I'd suggest deferring this for next release, so
I can pick this patch up directly after 3.16-rc1 is released.

In case you want to proceed with it now, feel free to add my Acked-by.

Best regards,
Tomasz
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sachin Kamat May 28, 2014, 11:18 a.m. UTC | #4
Hi Tomasz,

On 28 May 2014 16:32, Tomasz Figa <tomasz.figa@gmail.com> wrote:
> Hi Sachin,
>
> On 28.05.2014 10:01, Sachin Kamat wrote:
>> On 21 May 2014 17:28, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>>> Local symbols are made static.
>>>
>>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>>> ---
>>>  drivers/clk/samsung/clk-exynos5420.c |   10 +++++-----
>>>  1 file changed, 5 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c
>>> index 9d7d7eed03fd..41b507baf5d6 100644
>>> --- a/drivers/clk/samsung/clk-exynos5420.c
>>> +++ b/drivers/clk/samsung/clk-exynos5420.c
>>> @@ -474,7 +474,7 @@ static struct samsung_fixed_factor_clock
>>>         FFACTOR(0, "ff_dout_spll2", "mout_sclk_spll", 1, 2, 0),
>>>  };
>>>
>>> -struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>>> +static struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>>>         MUX(0, "mout_aclk400_isp", mout_group3_5800_p, SRC_TOP0, 0, 3),
>>>         MUX(0, "mout_aclk400_mscl", mout_group3_5800_p, SRC_TOP0, 4, 3),
>>>         MUX(0, "mout_aclk400_wcore", mout_group2_5800_p, SRC_TOP0, 16, 3),
>>> @@ -523,7 +523,7 @@ struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
>>>         MUX(0, "mout_fimd1", mout_group2_p, SRC_DISP10, 4, 3),
>>>  };
>>>
>>> -struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>>> +static struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>>>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore", DIV_TOP0, 16, 3),
>>>
>>>         DIV(0, "dout_aclk550_cam", "mout_aclk550_cam",
>>> @@ -539,14 +539,14 @@ struct samsung_div_clock exynos5800_div_clks[] __initdata = {
>>>         DIV(0, "dout_sclk_sw", "sclk_spll", DIV_TOP9, 24, 6),
>>>  };
>>>
>>> -struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
>>> +static struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
>>>         GATE(CLK_ACLK550_CAM, "aclk550_cam", "mout_user_aclk550_cam",
>>>                                 GATE_BUS_TOP, 24, 0, 0),
>>>         GATE(CLK_ACLK432_SCALER, "aclk432_scaler", "mout_user_aclk432_scaler",
>>>                                 GATE_BUS_TOP, 27, 0, 0),
>>>  };
>>>
>>> -struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>>> +static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>>>         MUX(0, "sclk_bpll", mout_bpll_p, TOP_SPARE2, 0, 1),
>>>         MUX(0, "mout_aclk400_wcore_bpll", mout_aclk400_wcore_bpll_p,
>>>                                 TOP_SPARE2, 4, 1),
>>> @@ -576,7 +576,7 @@ struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
>>>         MUX(0, "mout_fimd1", mout_group3_p, SRC_DISP10, 4, 1),
>>>  };
>>>
>>> -struct samsung_div_clock exynos5420_div_clks[] __initdata = {
>>> +static struct samsung_div_clock exynos5420_div_clks[] __initdata = {
>>>         DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore_bpll",
>>>                         DIV_TOP0, 16, 3),
>>>  };
>>> --
>>
>> Mike,
>>
>> Tomasz is probably on vacation. Can you please take this patch?
>>
>
> Sorry for late reply. Yes, I'm on vacation right now until 9.06, so I'm
> going to be less active through this period of time.

No worries.

> As for this patch, I'm not sure if it will apply to Mike's tree, as it
> seems to depend on patches that went through Kukjin's tree. Since this
> isn't anything critical, I'd suggest deferring this for next release, so
> I can pick this patch up directly after 3.16-rc1 is released.
>
> In case you want to proceed with it now, feel free to add my Acked-by.

Thanks Tomasz.

Kukjin,

If you still can take it, please do so with Tomasz's ack. Else he will handle it
after the merge window.
diff mbox

Patch

diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c
index 9d7d7eed03fd..41b507baf5d6 100644
--- a/drivers/clk/samsung/clk-exynos5420.c
+++ b/drivers/clk/samsung/clk-exynos5420.c
@@ -474,7 +474,7 @@  static struct samsung_fixed_factor_clock
 	FFACTOR(0, "ff_dout_spll2", "mout_sclk_spll", 1, 2, 0),
 };
 
-struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
+static struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
 	MUX(0, "mout_aclk400_isp", mout_group3_5800_p, SRC_TOP0, 0, 3),
 	MUX(0, "mout_aclk400_mscl", mout_group3_5800_p, SRC_TOP0, 4, 3),
 	MUX(0, "mout_aclk400_wcore", mout_group2_5800_p, SRC_TOP0, 16, 3),
@@ -523,7 +523,7 @@  struct samsung_mux_clock exynos5800_mux_clks[] __initdata = {
 	MUX(0, "mout_fimd1", mout_group2_p, SRC_DISP10, 4, 3),
 };
 
-struct samsung_div_clock exynos5800_div_clks[] __initdata = {
+static struct samsung_div_clock exynos5800_div_clks[] __initdata = {
 	DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore", DIV_TOP0, 16, 3),
 
 	DIV(0, "dout_aclk550_cam", "mout_aclk550_cam",
@@ -539,14 +539,14 @@  struct samsung_div_clock exynos5800_div_clks[] __initdata = {
 	DIV(0, "dout_sclk_sw", "sclk_spll", DIV_TOP9, 24, 6),
 };
 
-struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
+static struct samsung_gate_clock exynos5800_gate_clks[] __initdata = {
 	GATE(CLK_ACLK550_CAM, "aclk550_cam", "mout_user_aclk550_cam",
 				GATE_BUS_TOP, 24, 0, 0),
 	GATE(CLK_ACLK432_SCALER, "aclk432_scaler", "mout_user_aclk432_scaler",
 				GATE_BUS_TOP, 27, 0, 0),
 };
 
-struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
+static struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
 	MUX(0, "sclk_bpll", mout_bpll_p, TOP_SPARE2, 0, 1),
 	MUX(0, "mout_aclk400_wcore_bpll", mout_aclk400_wcore_bpll_p,
 				TOP_SPARE2, 4, 1),
@@ -576,7 +576,7 @@  struct samsung_mux_clock exynos5420_mux_clks[] __initdata = {
 	MUX(0, "mout_fimd1", mout_group3_p, SRC_DISP10, 4, 1),
 };
 
-struct samsung_div_clock exynos5420_div_clks[] __initdata = {
+static struct samsung_div_clock exynos5420_div_clks[] __initdata = {
 	DIV(0, "dout_aclk400_wcore", "mout_aclk400_wcore_bpll",
 			DIV_TOP0, 16, 3),
 };