summaryrefslogtreecommitdiffstats
path: root/include/linux/clocksource.h
diff options
context:
space:
mode:
authorRussell King - ARM Linux2011-02-19 16:34:50 +0100
committerJohn Stultz2011-02-21 22:29:07 +0100
commit36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6 (patch)
treed47a19e8f87d7167c5d395950cb55edfa6b899f0 /include/linux/clocksource.h
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiw... (diff)
downloadkernel-qcow2-linux-36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6.tar.gz
kernel-qcow2-linux-36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6.tar.xz
kernel-qcow2-linux-36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6.zip
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/linux/clocksource.h')
-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 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);