Skip to content

Commit d52579c

Browse files
Dinh Nguyenbebarino
authored andcommitted
clk: socfpga: add const to _ops data structures
All the static clk_ops data structure need a const. Signed-off-by: Dinh Nguyen <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 535d936 commit d52579c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/clk/socfpga/clk-pll-a10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static u8 clk_pll_get_parent(struct clk_hw *hwclk)
5858
CLK_MGR_PLL_CLK_SRC_MASK;
5959
}
6060

61-
static struct clk_ops clk_pll_ops = {
61+
static const struct clk_ops clk_pll_ops = {
6262
.recalc_rate = clk_pll_recalc_rate,
6363
.get_parent = clk_pll_get_parent,
6464
};

drivers/clk/socfpga/clk-pll-s10.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ static int clk_pll_prepare(struct clk_hw *hwclk)
9898
return 0;
9999
}
100100

101-
static struct clk_ops clk_pll_ops = {
101+
static const struct clk_ops clk_pll_ops = {
102102
.recalc_rate = clk_pll_recalc_rate,
103103
.get_parent = clk_pll_get_parent,
104104
.prepare = clk_pll_prepare,
105105
};
106106

107-
static struct clk_ops clk_boot_ops = {
107+
static const struct clk_ops clk_boot_ops = {
108108
.recalc_rate = clk_boot_clk_recalc_rate,
109109
.get_parent = clk_boot_get_parent,
110110
.prepare = clk_pll_prepare,

drivers/clk/socfpga/clk-pll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static u8 clk_pll_get_parent(struct clk_hw *hwclk)
6565
CLK_MGR_PLL_CLK_SRC_MASK;
6666
}
6767

68-
static struct clk_ops clk_pll_ops = {
68+
static const struct clk_ops clk_pll_ops = {
6969
.recalc_rate = clk_pll_recalc_rate,
7070
.get_parent = clk_pll_get_parent,
7171
};

0 commit comments

Comments
 (0)