Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce382d47 authored by Tero Kristo's avatar Tero Kristo
Browse files

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: default avatarTero Kristo <t-kristo@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
parent 2e1a294c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ struct ti_clk_mux {
	int num_parents;
	u16 reg;
	u8 module;
	const char **parents;
	const char * const *parents;
	u16 flags;
};

+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ struct clk *ti_clk_register_composite(struct ti_clk *setup)
	struct clk_hw *mux;
	struct clk_hw *div;
	int num_parents = 1;
	const char **parent_names = NULL;
	const char * const *parent_names = NULL;
	struct clk *clk;
	int ret;

+4 −4
Original line number Diff line number Diff line
@@ -97,10 +97,10 @@ const struct clk_ops ti_clk_mux_ops = {
};

static struct clk *_register_mux(struct device *dev, const char *name,
				 const char **parent_names, u8 num_parents,
				 unsigned long flags, void __iomem *reg,
				 u8 shift, u32 mask, u8 clk_mux_flags,
				 u32 *table)
				 const char * const *parent_names,
				 u8 num_parents, unsigned long flags,
				 void __iomem *reg, u8 shift, u32 mask,
				 u8 clk_mux_flags, u32 *table)
{
	struct clk_mux *mux;
	struct clk *clk;