Re: [PATCH] drm: msm: hdmi: Constify static structs

2021-10-01 Thread Dmitry Baryshkov
On 21/09/2021 00:20, Rikard Falkeborn wrote: The only usage of hdmi_8996_pll_ops is to assign its address to the ops field in the clk_init_data struct, and the only usage of pll_init is to assign its address to the init field in the clk_hw struct, both which are pointers to const. Make them const

[PATCH] drm: msm: hdmi: Constify static structs

2021-09-20 Thread Rikard Falkeborn
The only usage of hdmi_8996_pll_ops is to assign its address to the ops field in the clk_init_data struct, and the only usage of pll_init is to assign its address to the init field in the clk_hw struct, both which are pointers to const. Make them const to allow the compiler to put them in read-only