Commit d52579ce authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Stephen Boyd

clk: socfpga: add const to _ops data structures

All the static clk_ops data structure need a const.
Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Link: https://lkml.kernel.org/r/20200512181647.5071-3-dinguyen@kernel.orgSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 535d936f
...@@ -58,7 +58,7 @@ static u8 clk_pll_get_parent(struct clk_hw *hwclk) ...@@ -58,7 +58,7 @@ static u8 clk_pll_get_parent(struct clk_hw *hwclk)
CLK_MGR_PLL_CLK_SRC_MASK; CLK_MGR_PLL_CLK_SRC_MASK;
} }
static struct clk_ops clk_pll_ops = { static const struct clk_ops clk_pll_ops = {
.recalc_rate = clk_pll_recalc_rate, .recalc_rate = clk_pll_recalc_rate,
.get_parent = clk_pll_get_parent, .get_parent = clk_pll_get_parent,
}; };
......
...@@ -98,13 +98,13 @@ static int clk_pll_prepare(struct clk_hw *hwclk) ...@@ -98,13 +98,13 @@ static int clk_pll_prepare(struct clk_hw *hwclk)
return 0; return 0;
} }
static struct clk_ops clk_pll_ops = { static const struct clk_ops clk_pll_ops = {
.recalc_rate = clk_pll_recalc_rate, .recalc_rate = clk_pll_recalc_rate,
.get_parent = clk_pll_get_parent, .get_parent = clk_pll_get_parent,
.prepare = clk_pll_prepare, .prepare = clk_pll_prepare,
}; };
static struct clk_ops clk_boot_ops = { static const struct clk_ops clk_boot_ops = {
.recalc_rate = clk_boot_clk_recalc_rate, .recalc_rate = clk_boot_clk_recalc_rate,
.get_parent = clk_boot_get_parent, .get_parent = clk_boot_get_parent,
.prepare = clk_pll_prepare, .prepare = clk_pll_prepare,
......
...@@ -65,7 +65,7 @@ static u8 clk_pll_get_parent(struct clk_hw *hwclk) ...@@ -65,7 +65,7 @@ static u8 clk_pll_get_parent(struct clk_hw *hwclk)
CLK_MGR_PLL_CLK_SRC_MASK; CLK_MGR_PLL_CLK_SRC_MASK;
} }
static struct clk_ops clk_pll_ops = { static const struct clk_ops clk_pll_ops = {
.recalc_rate = clk_pll_recalc_rate, .recalc_rate = clk_pll_recalc_rate,
.get_parent = clk_pll_get_parent, .get_parent = clk_pll_get_parent,
}; };
......
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