diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2011-02-19 10:34:50 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2011-02-21 16:29:07 -0500 |
commit | 36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6 (patch) | |
tree | d47a19e8f87d7167c5d395950cb55edfa6b899f0 /include | |
parent | 6f576d57f1fa0d6026b495d8746d56d949989161 (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.h | 2 |
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 { | |||
161 | /* | 161 | /* |
162 | * First part of structure is read mostly | 162 | * First part of structure is read mostly |
163 | */ | 163 | */ |
164 | char *name; | 164 | const char *name; |
165 | struct list_head list; | 165 | struct list_head list; |
166 | int rating; | 166 | int rating; |
167 | cycle_t (*read)(struct clocksource *cs); | 167 | cycle_t (*read)(struct clocksource *cs); |