Commit 59273246 authored by Arvind Yadav's avatar Arvind Yadav Committed by Stephen Boyd

clk: zte: constify clk_div_table

clk_div_table are not supposed to change at runtime. All functions
working with clk_div_table provided by <linux/clk-provider.h> work
with const clk_div_table. So mark the non-const structs as const.
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: default avatarShawn Guo <shawnguo@kernel.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent fdda6ee9
...@@ -451,7 +451,7 @@ static struct zx_clk_fixed_factor top_ffactor_clk[] = { ...@@ -451,7 +451,7 @@ static struct zx_clk_fixed_factor top_ffactor_clk[] = {
FFACTOR(0, "emmc_mux_div2", "emmc_mux", 1, 2, CLK_SET_RATE_PARENT), FFACTOR(0, "emmc_mux_div2", "emmc_mux", 1, 2, CLK_SET_RATE_PARENT),
}; };
static struct clk_div_table noc_div_table[] = { static const struct clk_div_table noc_div_table[] = {
{ .val = 1, .div = 2, }, { .val = 1, .div = 2, },
{ .val = 3, .div = 4, }, { .val = 3, .div = 4, },
}; };
...@@ -644,7 +644,7 @@ static int __init top_clocks_init(struct device_node *np) ...@@ -644,7 +644,7 @@ static int __init top_clocks_init(struct device_node *np)
return 0; return 0;
} }
static struct clk_div_table common_even_div_table[] = { static const struct clk_div_table common_even_div_table[] = {
{ .val = 0, .div = 1, }, { .val = 0, .div = 1, },
{ .val = 1, .div = 2, }, { .val = 1, .div = 2, },
{ .val = 3, .div = 4, }, { .val = 3, .div = 4, },
...@@ -656,7 +656,7 @@ static struct clk_div_table common_even_div_table[] = { ...@@ -656,7 +656,7 @@ static struct clk_div_table common_even_div_table[] = {
{ .val = 15, .div = 16, }, { .val = 15, .div = 16, },
}; };
static struct clk_div_table common_div_table[] = { static const struct clk_div_table common_div_table[] = {
{ .val = 0, .div = 1, }, { .val = 0, .div = 1, },
{ .val = 1, .div = 2, }, { .val = 1, .div = 2, },
{ .val = 2, .div = 3, }, { .val = 2, .div = 3, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment