From af616888c86534b0f6a9754b2cf63adf062fdb7d Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 8 Mar 2019 15:03:41 +0100 Subject: clk: parent_names should be const Not only the array of pointers should be const, but also the strings they point to. Add missing const. Signed-off-by: Sascha Hauer --- include/linux/clk.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/linux/clk.h b/include/linux/clk.h index ee888dc083..1f20eb2772 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -310,7 +310,7 @@ struct clk { int enable_count; struct list_head list; const char *name; - const char **parent_names; + const char * const *parent_names; int num_parents; struct clk **parents; @@ -384,11 +384,11 @@ struct clk_mux { extern struct clk_ops clk_mux_ops; struct clk *clk_mux_alloc(const char *name, void __iomem *reg, - u8 shift, u8 width, const char **parents, u8 num_parents, + u8 shift, u8 width, const char * const *parents, u8 num_parents, unsigned flags); void clk_mux_free(struct clk *clk_mux); struct clk *clk_mux(const char *name, void __iomem *reg, - u8 shift, u8 width, const char **parents, u8 num_parents, + u8 shift, u8 width, const char * const *parents, u8 num_parents, unsigned flags); struct clk_gate { @@ -429,7 +429,7 @@ struct clk *clk_lookup(const char *name); void clk_dump(int verbose); struct clk *clk_register_composite(const char *name, - const char **parent_names, int num_parents, + const char * const *parent_names, int num_parents, struct clk *mux_clk, struct clk *rate_clk, struct clk *gate_clk, -- cgit v1.2.3