mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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>
This commit is contained in:
parent
6f576d57f1
commit
36d8593ec7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user