clk: socfpga: add const to _ops data structures
All the static clk_ops data structure need a const. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> Link: https://lkml.kernel.org/r/20200512181647.5071-3-dinguyen@kernel.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
committed by
Stephen Boyd
parent
535d936f61
commit
d52579ce21
@@ -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)
|
|||||||
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)
|
|||||||
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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user