Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: ti: enforce const types on string arrays

Constant string arrays should use const char * const instead of just
const char *. Change the implementations using these to proper type.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>

+6 -6
+1 -1
drivers/clk/ti/clock.h
··· 86 86 int num_parents; 87 87 u16 reg; 88 88 u8 module; 89 - const char **parents; 89 + const char * const *parents; 90 90 u16 flags; 91 91 }; 92 92
+1 -1
drivers/clk/ti/composite.c
··· 124 124 struct clk_hw *mux; 125 125 struct clk_hw *div; 126 126 int num_parents = 1; 127 - const char **parent_names = NULL; 127 + const char * const *parent_names = NULL; 128 128 struct clk *clk; 129 129 int ret; 130 130
+4 -4
drivers/clk/ti/mux.c
··· 97 97 }; 98 98 99 99 static struct clk *_register_mux(struct device *dev, const char *name, 100 - const char **parent_names, u8 num_parents, 101 - unsigned long flags, void __iomem *reg, 102 - u8 shift, u32 mask, u8 clk_mux_flags, 103 - u32 *table) 100 + const char * const *parent_names, 101 + u8 num_parents, unsigned long flags, 102 + void __iomem *reg, u8 shift, u32 mask, 103 + u8 clk_mux_flags, u32 *table) 104 104 { 105 105 struct clk_mux *mux; 106 106 struct clk *clk;