Commit 22eac913 authored by Arvind Yadav's avatar Arvind Yadav Committed by David S. Miller

net: stmmac: constify clk_div_table

clk_div_table are not supposed to change at runtime.
meson8b_dwmac structure is working with const clk_div_table.
So mark the non-const structs as const.
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 25d4dae1
...@@ -89,7 +89,7 @@ static int meson8b_init_clk(struct meson8b_dwmac *dwmac) ...@@ -89,7 +89,7 @@ static int meson8b_init_clk(struct meson8b_dwmac *dwmac)
char clk_name[32]; char clk_name[32];
const char *clk_div_parents[1]; const char *clk_div_parents[1];
const char *mux_parent_names[MUX_CLK_NUM_PARENTS]; const char *mux_parent_names[MUX_CLK_NUM_PARENTS];
static struct clk_div_table clk_25m_div_table[] = { static const struct clk_div_table clk_25m_div_table[] = {
{ .val = 0, .div = 5 }, { .val = 0, .div = 5 },
{ .val = 1, .div = 10 }, { .val = 1, .div = 10 },
{ /* sentinel */ }, { /* sentinel */ },
......
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