clk: make several parent names const
Since commit 2893c37946
("clk: make strings in parent name arrays
const") the name of parent clocks can be const. So add more const in
several clock drivers.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
@@ -77,12 +77,12 @@ static void __init clk_misc_init(void)
|
||||
writel_relaxed(30 << BP_FRAC_IOFRAC, FRAC + SET);
|
||||
}
|
||||
|
||||
static const char *sel_pll[] __initdata = { "pll", "ref_xtal", };
|
||||
static const char *sel_cpu[] __initdata = { "ref_cpu", "ref_xtal", };
|
||||
static const char *sel_pix[] __initdata = { "ref_pix", "ref_xtal", };
|
||||
static const char *sel_io[] __initdata = { "ref_io", "ref_xtal", };
|
||||
static const char *cpu_sels[] __initdata = { "cpu_pll", "cpu_xtal", };
|
||||
static const char *emi_sels[] __initdata = { "emi_pll", "emi_xtal", };
|
||||
static const char *const sel_pll[] __initconst = { "pll", "ref_xtal", };
|
||||
static const char *const sel_cpu[] __initconst = { "ref_cpu", "ref_xtal", };
|
||||
static const char *const sel_pix[] __initconst = { "ref_pix", "ref_xtal", };
|
||||
static const char *const sel_io[] __initconst = { "ref_io", "ref_xtal", };
|
||||
static const char *const cpu_sels[] __initconst = { "cpu_pll", "cpu_xtal", };
|
||||
static const char *const emi_sels[] __initconst = { "emi_pll", "emi_xtal", };
|
||||
|
||||
enum imx23_clk {
|
||||
ref_xtal, pll, ref_cpu, ref_emi, ref_pix, ref_io, saif_sel,
|
||||
|
@@ -125,15 +125,15 @@ static void __init clk_misc_init(void)
|
||||
writel_relaxed(val, FRAC0);
|
||||
}
|
||||
|
||||
static const char *sel_cpu[] __initdata = { "ref_cpu", "ref_xtal", };
|
||||
static const char *sel_io0[] __initdata = { "ref_io0", "ref_xtal", };
|
||||
static const char *sel_io1[] __initdata = { "ref_io1", "ref_xtal", };
|
||||
static const char *sel_pix[] __initdata = { "ref_pix", "ref_xtal", };
|
||||
static const char *sel_gpmi[] __initdata = { "ref_gpmi", "ref_xtal", };
|
||||
static const char *sel_pll0[] __initdata = { "pll0", "ref_xtal", };
|
||||
static const char *cpu_sels[] __initdata = { "cpu_pll", "cpu_xtal", };
|
||||
static const char *emi_sels[] __initdata = { "emi_pll", "emi_xtal", };
|
||||
static const char *ptp_sels[] __initdata = { "ref_xtal", "pll0", };
|
||||
static const char *const sel_cpu[] __initconst = { "ref_cpu", "ref_xtal", };
|
||||
static const char *const sel_io0[] __initconst = { "ref_io0", "ref_xtal", };
|
||||
static const char *const sel_io1[] __initconst = { "ref_io1", "ref_xtal", };
|
||||
static const char *const sel_pix[] __initconst = { "ref_pix", "ref_xtal", };
|
||||
static const char *const sel_gpmi[] __initconst = { "ref_gpmi", "ref_xtal", };
|
||||
static const char *const sel_pll0[] __initconst = { "pll0", "ref_xtal", };
|
||||
static const char *const cpu_sels[] __initconst = { "cpu_pll", "cpu_xtal", };
|
||||
static const char *const emi_sels[] __initconst = { "emi_pll", "emi_xtal", };
|
||||
static const char *const ptp_sels[] __initconst = { "ref_xtal", "pll0", };
|
||||
|
||||
enum imx28_clk {
|
||||
ref_xtal, pll0, pll1, pll2, ref_cpu, ref_emi, ref_io0, ref_io1,
|
||||
|
@@ -49,7 +49,7 @@ static inline struct clk *mxs_clk_gate(const char *name,
|
||||
}
|
||||
|
||||
static inline struct clk *mxs_clk_mux(const char *name, void __iomem *reg,
|
||||
u8 shift, u8 width, const char **parent_names, int num_parents)
|
||||
u8 shift, u8 width, const char *const *parent_names, int num_parents)
|
||||
{
|
||||
return clk_register_mux(NULL, name, parent_names, num_parents,
|
||||
CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT,
|
||||
|
Reference in New Issue
Block a user