Re: [PATCH] clk: constify parent name arrays in macros
From: Turquette, Mike
Date: Fri Apr 27 2012 - 13:56:10 EST
On Fri, Apr 27, 2012 at 5:28 AM, Rajendra Nayak <rnayak@xxxxxx> wrote:
> 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@xxxxxx>
Good catch Rajendra. I'll pull it into clk-next.
Regards,
Mike
> ---
> include/linux/clk-private.h | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h
> index eeae7a3..6ebec83 100644
> --- a/include/linux/clk-private.h
> +++ b/include/linux/clk-private.h
> @@ -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[] = { \
> --
> 1.7.1
>
¢éì¹»®&Þ~º&¶¬?+-±éݶ¥?w®?Ë?±Êâméb?ìdz¹Þ?)í?æèw*jg¬±¨¶????Ý¢j/?êäz¹Þ??à2?Þ?¨èÚ&¢)ß¡«a¶Úþø®G«?éh®æj:+v?¨?wè?Ù¥>W?±êÞiÛaxPjØm¶?ÿÃ-»+?ùd?_