diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-03-27 03:23:22 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-04-24 19:37:38 -0400 |
commit | 822c250e154cd44cf60a4f0d647aa70abea09520 (patch) | |
tree | e23420400357585a3ab0cdbacd2c8d8b9605efd2 /include/linux/clk-private.h | |
parent | c0d2530c03cbf3741cb7a0f8ebae93e7a563fc58 (diff) |
clk: add "const" for clk_ops of basic clks
The clk_ops of basic clks should have "const" to match the definition
in "struct clk" and clk_register prototype.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/linux/clk-private.h')
-rw-r--r-- | include/linux/clk-private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h index 5e4312b6f5cc..5f4ccd7cd761 100644 --- a/include/linux/clk-private.h +++ b/include/linux/clk-private.h | |||
@@ -55,7 +55,7 @@ struct clk { | |||
55 | * alternative macro for static initialization | 55 | * alternative macro for static initialization |
56 | */ | 56 | */ |
57 | 57 | ||
58 | extern struct clk_ops clk_fixed_rate_ops; | 58 | extern const struct clk_ops clk_fixed_rate_ops; |
59 | 59 | ||
60 | #define DEFINE_CLK_FIXED_RATE(_name, _flags, _rate, \ | 60 | #define DEFINE_CLK_FIXED_RATE(_name, _flags, _rate, \ |
61 | _fixed_rate_flags) \ | 61 | _fixed_rate_flags) \ |
@@ -78,7 +78,7 @@ extern struct clk_ops clk_fixed_rate_ops; | |||
78 | .flags = _flags, \ | 78 | .flags = _flags, \ |
79 | }; | 79 | }; |
80 | 80 | ||
81 | extern struct clk_ops clk_gate_ops; | 81 | extern const struct clk_ops clk_gate_ops; |
82 | 82 | ||
83 | #define DEFINE_CLK_GATE(_name, _parent_name, _parent_ptr, \ | 83 | #define DEFINE_CLK_GATE(_name, _parent_name, _parent_ptr, \ |
84 | _flags, _reg, _bit_idx, \ | 84 | _flags, _reg, _bit_idx, \ |
@@ -110,7 +110,7 @@ extern struct clk_ops clk_gate_ops; | |||
110 | .flags = _flags, \ | 110 | .flags = _flags, \ |
111 | }; | 111 | }; |
112 | 112 | ||
113 | extern struct clk_ops clk_divider_ops; | 113 | extern const struct clk_ops clk_divider_ops; |
114 | 114 | ||
115 | #define DEFINE_CLK_DIVIDER(_name, _parent_name, _parent_ptr, \ | 115 | #define DEFINE_CLK_DIVIDER(_name, _parent_name, _parent_ptr, \ |
116 | _flags, _reg, _shift, _width, \ | 116 | _flags, _reg, _shift, _width, \ |
@@ -143,7 +143,7 @@ extern struct clk_ops clk_divider_ops; | |||
143 | .flags = _flags, \ | 143 | .flags = _flags, \ |
144 | }; | 144 | }; |
145 | 145 | ||
146 | extern struct clk_ops clk_mux_ops; | 146 | extern const struct clk_ops clk_mux_ops; |
147 | 147 | ||
148 | #define DEFINE_CLK_MUX(_name, _parent_names, _parents, _flags, \ | 148 | #define DEFINE_CLK_MUX(_name, _parent_names, _parents, _flags, \ |
149 | _reg, _shift, _width, \ | 149 | _reg, _shift, _width, \ |