x86/numachip: make numachip2_clockevent const and __initconst
PATCH 1/1 x86/numachip: make numachip2_clockevent const and __initconst
Make this const as it is only used during a copy operation. This usage is during the init phase, so annotate the structure with __initconst too.
Done using Coccinelle.
Signed-off-by Bhumika Goyal <[email protected]>
--- drivers/clocksource/numachip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/numachip.c +1 -1
@@ -43,7 +43,7 @@ static int numachip2_set_next_event(unsigned long delta, struct clock_event_devireturn 0 ; } -static struct clock_event_device numachip2_clockevent = { +static const struct clock_event_device numachip2_clockevent__initconst = { .name ="numachip2" , .rating =400 , .set_next_event = numachip2_set_next_event,
Signature · 1 line
1.9.1