summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-02-19 15:34:50 +0000
committerJohn Stultz <john.stultz@linaro.org>2011-02-21 13:29:07 -0800
commit36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6 (patch)
treed47a19e8f87d7167c5d395950cb55edfa6b899f0 /include
parent6f576d57f1fa0d6026b495d8746d56d949989161 (diff)
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 <rmk+kernel@arm.linux.org.uk> Signed-off-by: John Stultz <johnstul@us.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clocksource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index c37b21ad5a3..94c1f38e922 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);