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

dw_apb_timer: constify clocksource name

The clocksource name should be const for correctness.

Cc: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>

authored by

Jamie Iles and committed by
John Stultz
a1330228 dcb69290

+2 -2
+1 -1
drivers/clocksource/dw_apb_timer.c
··· 348 348 * dw_apb_clocksource_register() as the next step. 349 349 */ 350 350 struct dw_apb_clocksource * 351 - dw_apb_clocksource_init(unsigned rating, char *name, void __iomem *base, 351 + dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base, 352 352 unsigned long freq) 353 353 { 354 354 struct dw_apb_clocksource *dw_cs = kzalloc(sizeof(*dw_cs), GFP_KERNEL);
+1 -1
include/linux/dw_apb_timer.h
··· 46 46 dw_apb_clockevent_init(int cpu, const char *name, unsigned rating, 47 47 void __iomem *base, int irq, unsigned long freq); 48 48 struct dw_apb_clocksource * 49 - dw_apb_clocksource_init(unsigned rating, char *name, void __iomem *base, 49 + dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base, 50 50 unsigned long freq); 51 51 void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs); 52 52 void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs);