Re: [PATCH] char: ipmi: constify ipmi_smi_handlers structures

2017-01-15 Thread Corey Minyard
On 01/15/2017 01:15 PM, Bhumika Goyal wrote: Declare ipmi_smi_handlers structures as const as they are only passed as an argument to the function ipmi_register_smi. This argument is of type const, so ipmi_smi_handlers structures having similar properties can be declared const too. Done using

[PATCH] char: ipmi: constify ipmi_smi_handlers structures

2017-01-15 Thread Bhumika Goyal
Declare ipmi_smi_handlers structures as const as they are only passed as an argument to the function ipmi_register_smi. This argument is of type const, so ipmi_smi_handlers structures having similar properties can be declared const too. Done using Coccinelle: @r1 disable optional_qualifier@