From: Russell King - ARM Linux Date: Sat, 19 Feb 2011 15:34:50 +0000 (+0000) Subject: Make clocksource name const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6;p=linux-beck.git Make clocksource name const As nothing should be writing to the clocksource name string, make the clocksource name pointer const. Build-tested on ARM Versatile Express. Signed-off-by: Russell King Signed-off-by: John Stultz --- diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index c37b21ad5a3b..94c1f38e922a 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -161,7 +161,7 @@ struct clocksource { /* * First part of structure is read mostly */ - char *name; + const char *name; struct list_head list; int rating; cycle_t (*read)(struct clocksource *cs);