Skip to contentSkip to conversation

dw_apb_timer: constify clocksource name

PATCH In review Jamie Iles 2 participants 3 messages Jul 25, 2011 – Oct 4, 2011 Clocksource, clockevent drivers

lore
Share & tools
lore

Jamie Iles

author
#0 lore raw

PATCH 1/1 dw_apb_timer: constify clocksource name

The clocksource name should be const for correctness.

---
 drivers/clocksource/dw_apb_timer.c |    2 +-
 include/linux/dw_apb_timer.h       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/clocksource/dw_apb_timer.c +1 -1
index 580f870..8c2a35f 100644
@@ -348,7 +348,7 @@ static void apbt_restart_clocksource(struct clocksource *cs)
  * dw_apb_clocksource_register() as the next step.
  */
 struct dw_apb_clocksource *
-dw_apb_clocksource_init(unsigned rating, char *name, void __iomem *base,
+dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base,
 			unsigned long freq)
 {
 	struct dw_apb_clocksource *dw_cs = kzalloc(sizeof(*dw_cs), GFP_KERNEL);
include/linux/dw_apb_timer.h +1 -1
index 49638ea..07261d5 100644
@@ -46,7 +46,7 @@ struct dw_apb_clock_event_device *
 dw_apb_clockevent_init(int cpu, const char *name, unsigned rating,
 		       void __iomem *base, int irq, unsigned long freq);
 struct dw_apb_clocksource *
-dw_apb_clocksource_init(unsigned rating, char *name, void __iomem *base,
+dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base,
 			unsigned long freq);
 void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs);
 void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs);
Signature · 1 line
1.7.4.1
#2 lore raw
Quoted 7 lines · Jamie Iles
Quoted 4 lines · Jamie Iles

The clocksource name should be const for correctness.

ping?

Terribly sorry this got so far back on my queue. I've applied it in my tree and will push it for 3.2

thanks
-john