aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clk-private.h
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2012-04-27 08:28:13 -0400
committerMike Turquette <mturquette@linaro.org>2012-05-01 21:13:20 -0400
commite447c50e3af5dcad3075c80bd1bdc4e2024b8186 (patch)
treee07c88f04b42a5b82b653f32d6ca4679610521cd /include/linux/clk-private.h
parent8b7730ddff5affd623bed2affa0d0fa47ebbad3b (diff)
clk: constify parent name arrays in macros
parent name array is now expected to be const char *, make the relevent changes in the clk macros which define default clock types. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/linux/clk-private.h')
-rw-r--r--include/linux/clk-private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h
index eeae7a3cfc45..6ebec83f1a77 100644
--- a/include/linux/clk-private.h
+++ b/include/linux/clk-private.h
@@ -70,7 +70,7 @@ struct clk {
70#define DEFINE_CLK_FIXED_RATE(_name, _flags, _rate, \ 70#define DEFINE_CLK_FIXED_RATE(_name, _flags, _rate, \
71 _fixed_rate_flags) \ 71 _fixed_rate_flags) \
72 static struct clk _name; \ 72 static struct clk _name; \
73 static char *_name##_parent_names[] = {}; \ 73 static const char *_name##_parent_names[] = {}; \
74 static struct clk_fixed_rate _name##_hw = { \ 74 static struct clk_fixed_rate _name##_hw = { \
75 .hw = { \ 75 .hw = { \
76 .clk = &_name, \ 76 .clk = &_name, \
@@ -85,7 +85,7 @@ struct clk {
85 _flags, _reg, _bit_idx, \ 85 _flags, _reg, _bit_idx, \
86 _gate_flags, _lock) \ 86 _gate_flags, _lock) \
87 static struct clk _name; \ 87 static struct clk _name; \
88 static char *_name##_parent_names[] = { \ 88 static const char *_name##_parent_names[] = { \
89 _parent_name, \ 89 _parent_name, \
90 }; \ 90 }; \
91 static struct clk *_name##_parents[] = { \ 91 static struct clk *_name##_parents[] = { \
@@ -107,7 +107,7 @@ struct clk {
107 _flags, _reg, _shift, _width, \ 107 _flags, _reg, _shift, _width, \
108 _divider_flags, _lock) \ 108 _divider_flags, _lock) \
109 static struct clk _name; \ 109 static struct clk _name; \
110 static char *_name##_parent_names[] = { \ 110 static const char *_name##_parent_names[] = { \
111 _parent_name, \ 111 _parent_name, \
112 }; \ 112 }; \
113 static struct clk *_name##_parents[] = { \ 113 static struct clk *_name##_parents[] = { \