clk: constify parent name arrays in macros
authorRajendra Nayak <rnayak@ti.com>
Fri, 27 Apr 2012 12:28:13 +0000 (17:58 +0530)
committerMike Turquette <mturquette@linaro.org>
Wed, 2 May 2012 01:13:20 +0000 (18:13 -0700)
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>
include/linux/clk-private.h

index eeae7a3cfc45bfa08c5056fcf5df7e2e44424ac9..6ebec83f1a7746dd92192bd8ca8b16f2b00f98a7 100644 (file)
@@ -70,7 +70,7 @@ struct clk {
 #define DEFINE_CLK_FIXED_RATE(_name, _flags, _rate,            \
                                _fixed_rate_flags)              \
        static struct clk _name;                                \
-       static char *_name##_parent_names[] = {};               \
+       static const char *_name##_parent_names[] = {};         \
        static struct clk_fixed_rate _name##_hw = {             \
                .hw = {                                         \
                        .clk = &_name,                          \
@@ -85,7 +85,7 @@ struct clk {
                                _flags, _reg, _bit_idx,         \
                                _gate_flags, _lock)             \
        static struct clk _name;                                \
-       static char *_name##_parent_names[] = {                 \
+       static const char *_name##_parent_names[] = {           \
                _parent_name,                                   \
        };                                                      \
        static struct clk *_name##_parents[] = {                \
@@ -107,7 +107,7 @@ struct clk {
                                _flags, _reg, _shift, _width,   \
                                _divider_flags, _lock)          \
        static struct clk _name;                                \
-       static char *_name##_parent_names[] = {                 \
+       static const char *_name##_parent_names[] = {           \
                _parent_name,                                   \
        };                                                      \
        static struct clk *_name##_parents[] = {                \