Commit e447c50e authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Mike Turquette

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: default avatarRajendra Nayak <rnayak@ti.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 8b7730dd
...@@ -70,7 +70,7 @@ struct clk { ...@@ -70,7 +70,7 @@ struct clk {
#define DEFINE_CLK_FIXED_RATE(_name, _flags, _rate, \ #define DEFINE_CLK_FIXED_RATE(_name, _flags, _rate, \
_fixed_rate_flags) \ _fixed_rate_flags) \
static struct clk _name; \ static struct clk _name; \
static char *_name##_parent_names[] = {}; \ static const char *_name##_parent_names[] = {}; \
static struct clk_fixed_rate _name##_hw = { \ static struct clk_fixed_rate _name##_hw = { \
.hw = { \ .hw = { \
.clk = &_name, \ .clk = &_name, \
...@@ -85,7 +85,7 @@ struct clk { ...@@ -85,7 +85,7 @@ struct clk {
_flags, _reg, _bit_idx, \ _flags, _reg, _bit_idx, \
_gate_flags, _lock) \ _gate_flags, _lock) \
static struct clk _name; \ static struct clk _name; \
static char *_name##_parent_names[] = { \ static const char *_name##_parent_names[] = { \
_parent_name, \ _parent_name, \
}; \ }; \
static struct clk *_name##_parents[] = { \ static struct clk *_name##_parents[] = { \
...@@ -107,7 +107,7 @@ struct clk { ...@@ -107,7 +107,7 @@ struct clk {
_flags, _reg, _shift, _width, \ _flags, _reg, _shift, _width, \
_divider_flags, _lock) \ _divider_flags, _lock) \
static struct clk _name; \ static struct clk _name; \
static char *_name##_parent_names[] = { \ static const char *_name##_parent_names[] = { \
_parent_name, \ _parent_name, \
}; \ }; \
static struct clk *_name##_parents[] = { \ static struct clk *_name##_parents[] = { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment