Skip to content

Commit

Permalink
Make clocksource name const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King - ARM Linux authored and John Stultz committed Feb 21, 2011
1 parent 6f576d5 commit 36d8593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/clocksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 36d8593

Please sign in to comment.