diff options
| author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-22 09:18:29 -0400 |
|---|---|---|
| committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-02 02:25:49 -0400 |
| commit | fa1da981f5ee603610bd8f8920c4ec393e95ceeb (patch) | |
| tree | 83f50029cf5148add0e5b91023dfad330fcbc326 | |
| parent | e90a7da4f75435ba0e5fcb12ed65fa6d4bd7a364 (diff) | |
clk: imx: make clk_ops const
Make these const as they are only stored in the const field of a
clk_init_data structure.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
| -rw-r--r-- | drivers/clk/imx/clk-busy.c | 4 | ||||
| -rw-r--r-- | drivers/clk/imx/clk-gate2.c | 2 | ||||
| -rw-r--r-- | drivers/clk/imx/clk-pllv1.c | 2 | ||||
| -rw-r--r-- | drivers/clk/imx/clk-pllv2.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/imx/clk-busy.c b/drivers/clk/imx/clk-busy.c index 5cc99590f9a3..6df3389687bc 100644 --- a/drivers/clk/imx/clk-busy.c +++ b/drivers/clk/imx/clk-busy.c | |||
| @@ -72,7 +72,7 @@ static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate, | |||
| 72 | return ret; | 72 | return ret; |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | static struct clk_ops clk_busy_divider_ops = { | 75 | static const struct clk_ops clk_busy_divider_ops = { |
| 76 | .recalc_rate = clk_busy_divider_recalc_rate, | 76 | .recalc_rate = clk_busy_divider_recalc_rate, |
| 77 | .round_rate = clk_busy_divider_round_rate, | 77 | .round_rate = clk_busy_divider_round_rate, |
| 78 | .set_rate = clk_busy_divider_set_rate, | 78 | .set_rate = clk_busy_divider_set_rate, |
| @@ -147,7 +147,7 @@ static int clk_busy_mux_set_parent(struct clk_hw *hw, u8 index) | |||
| 147 | return ret; | 147 | return ret; |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | static struct clk_ops clk_busy_mux_ops = { | 150 | static const struct clk_ops clk_busy_mux_ops = { |
| 151 | .get_parent = clk_busy_mux_get_parent, | 151 | .get_parent = clk_busy_mux_get_parent, |
| 152 | .set_parent = clk_busy_mux_set_parent, | 152 | .set_parent = clk_busy_mux_set_parent, |
| 153 | }; | 153 | }; |
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index db44a198a0d9..60fc9d7a9723 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c | |||
| @@ -118,7 +118,7 @@ static void clk_gate2_disable_unused(struct clk_hw *hw) | |||
| 118 | spin_unlock_irqrestore(gate->lock, flags); | 118 | spin_unlock_irqrestore(gate->lock, flags); |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | static struct clk_ops clk_gate2_ops = { | 121 | static const struct clk_ops clk_gate2_ops = { |
| 122 | .enable = clk_gate2_enable, | 122 | .enable = clk_gate2_enable, |
| 123 | .disable = clk_gate2_disable, | 123 | .disable = clk_gate2_disable, |
| 124 | .disable_unused = clk_gate2_disable_unused, | 124 | .disable_unused = clk_gate2_disable_unused, |
diff --git a/drivers/clk/imx/clk-pllv1.c b/drivers/clk/imx/clk-pllv1.c index 82fe3662b5f6..703818e9001a 100644 --- a/drivers/clk/imx/clk-pllv1.c +++ b/drivers/clk/imx/clk-pllv1.c | |||
| @@ -106,7 +106,7 @@ static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw, | |||
| 106 | return ull; | 106 | return ull; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | static struct clk_ops clk_pllv1_ops = { | 109 | static const struct clk_ops clk_pllv1_ops = { |
| 110 | .recalc_rate = clk_pllv1_recalc_rate, | 110 | .recalc_rate = clk_pllv1_recalc_rate, |
| 111 | }; | 111 | }; |
| 112 | 112 | ||
diff --git a/drivers/clk/imx/clk-pllv2.c b/drivers/clk/imx/clk-pllv2.c index 4aeda56ce372..c845b8c773a6 100644 --- a/drivers/clk/imx/clk-pllv2.c +++ b/drivers/clk/imx/clk-pllv2.c | |||
| @@ -226,7 +226,7 @@ static void clk_pllv2_unprepare(struct clk_hw *hw) | |||
| 226 | __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); | 226 | __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); |
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | static struct clk_ops clk_pllv2_ops = { | 229 | static const struct clk_ops clk_pllv2_ops = { |
| 230 | .prepare = clk_pllv2_prepare, | 230 | .prepare = clk_pllv2_prepare, |
| 231 | .unprepare = clk_pllv2_unprepare, | 231 | .unprepare = clk_pllv2_unprepare, |
| 232 | .recalc_rate = clk_pllv2_recalc_rate, | 232 | .recalc_rate = clk_pllv2_recalc_rate, |
