Skip to content

Commit e2fd64d

Browse files
dougg3bebarino
authored andcommitted
clk: mmp: pxa168: fix const-correctness
While working on this series of patches, checkpatch recommended that an extra const should be added to the mux parent arrays. Signed-off-by: Doug Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent ac1d62c commit e2fd64d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/clk/mmp/clk-of-pxa168.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,17 @@ static void pxa168_pll_init(struct pxa168_clk_unit *pxa_unit)
130130
static DEFINE_SPINLOCK(uart0_lock);
131131
static DEFINE_SPINLOCK(uart1_lock);
132132
static DEFINE_SPINLOCK(uart2_lock);
133-
static const char *uart_parent_names[] = {"pll1_3_16", "uart_pll"};
133+
static const char * const uart_parent_names[] = {"pll1_3_16", "uart_pll"};
134134

135135
static DEFINE_SPINLOCK(ssp0_lock);
136136
static DEFINE_SPINLOCK(ssp1_lock);
137137
static DEFINE_SPINLOCK(ssp2_lock);
138138
static DEFINE_SPINLOCK(ssp3_lock);
139139
static DEFINE_SPINLOCK(ssp4_lock);
140-
static const char *ssp_parent_names[] = {"pll1_96", "pll1_48", "pll1_24", "pll1_12"};
140+
static const char * const ssp_parent_names[] = {"pll1_96", "pll1_48", "pll1_24", "pll1_12"};
141141

142142
static DEFINE_SPINLOCK(timer_lock);
143-
static const char *timer_parent_names[] = {"pll1_48", "clk32", "pll1_96", "pll1_192"};
143+
static const char * const timer_parent_names[] = {"pll1_48", "clk32", "pll1_96", "pll1_192"};
144144

145145
static DEFINE_SPINLOCK(reset_lock);
146146

@@ -192,16 +192,16 @@ static void pxa168_apb_periph_clk_init(struct pxa168_clk_unit *pxa_unit)
192192

193193
static DEFINE_SPINLOCK(sdh0_lock);
194194
static DEFINE_SPINLOCK(sdh1_lock);
195-
static const char *sdh_parent_names[] = {"pll1_12", "pll1_13"};
195+
static const char * const sdh_parent_names[] = {"pll1_12", "pll1_13"};
196196

197197
static DEFINE_SPINLOCK(usb_lock);
198198

199199
static DEFINE_SPINLOCK(disp0_lock);
200-
static const char *disp_parent_names[] = {"pll1_2", "pll1_12"};
200+
static const char * const disp_parent_names[] = {"pll1_2", "pll1_12"};
201201

202202
static DEFINE_SPINLOCK(ccic0_lock);
203-
static const char *ccic_parent_names[] = {"pll1_2", "pll1_12"};
204-
static const char *ccic_phy_parent_names[] = {"pll1_6", "pll1_12"};
203+
static const char * const ccic_parent_names[] = {"pll1_2", "pll1_12"};
204+
static const char * const ccic_phy_parent_names[] = {"pll1_6", "pll1_12"};
205205

206206
static struct mmp_param_mux_clk apmu_mux_clks[] = {
207207
{0, "sdh0_mux", sdh_parent_names, ARRAY_SIZE(sdh_parent_names), CLK_SET_RATE_PARENT, APMU_SDH0, 6, 1, 0, &sdh0_lock},

0 commit comments

Comments
 (0)