[PATCH 2/2] ARM: davinci: make davinci_soc_info structures const

Sekhar Nori nsekhar at ti.com
Mon Nov 27 04:42:59 PST 2017


On Monday 16 October 2017 03:38 PM, Bhumika Goyal wrote:
> This is a followup patch for [PATCH 1/2].

This line is not relevant once the patch gets committed.

> 
> Make the structures const as they are either passed to the function

Patch description should be readable independent of subject line so we
need to be more specific than "the structures"

> davinci_common_init having the argument as const or their field cpu_clks
> of type struct clk_lookup * is passed to the function davinci_clk_init.
> So, the fields are never modified and the structures can be const. 
> 
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks at gmail.com>

I made fixes to commit description per above and here is the updated text.

"
ARM: davinci: make davinci_soc_info structures const

Make davinci_soc_info structures const as they are either passed to the
function davinci_common_init having the argument as const or their field
cpu_clks of type struct clk_lookup * is passed to the function
davinci_clk_init.

So, the fields are never modified and the structures can be const.

Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks at gmail.com>
[nsekhar at ti.com: minor commit message adjustment]
Signed-off-by: Sekhar Nori <nsekhar at ti.com>
"

With that I applied the patch to v4.16/fixes-non-critical

Thanks,
Sekhar



More information about the linux-arm-kernel mailing list