diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2011-02-19 15:34:50 +0000 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2011-02-21 13:29:07 -0800 |
commit | 36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6 (patch) | |
tree | d47a19e8f87d7167c5d395950cb55edfa6b899f0 /include/linux/clocksource.h | |
parent | 6f576d57f1fa0d6026b495d8746d56d949989161 (diff) | |
download | op-kernel-dev-36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6.zip op-kernel-dev-36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index c37b21a..94c1f38 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); |