Make clocksource name const
Russell King - ARM Linux [Sat, 19 Feb 2011 15:34:50 +0000 (15:34 +0000)]
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>

include/linux/clocksource.h

index c37b21a..94c1f38 100644 (file)
@@ -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);