drm/msm/: make clk_init_data const
PATCH 1/1 drm/msm/: make clk_init_data const
Make these const as they are only stored in the init field of a clk_hw structure, which is const.
Done using Coccinelle.
Signed-off-by Bhumika Goyal <[email protected]>
--- drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c | 2 +- drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c | 2 +- drivers/gpu/drm/msm/mdp/mdp4/mdp4_lvds_pll.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c +1 -1
@@ -702,7 +702,7 @@ static int hdmi_8996_pll_is_enabled(struct clk_hw *hw) "xo", }; -static struct clk_init_data pll_init = { +static const struct clk_init_data pll_init = { .name ="hdmipll" , .ops = &hdmi_8996_pll_ops, .parent_names = hdmi_pll_parents,
drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c +1 -1
@@ -419,7 +419,7 @@ static int hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate, "pxo", }; -static struct clk_init_data pll_init = { +static const struct clk_init_data pll_init = { .name ="hdmi_pll" , .ops = &hdmi_pll_ops, .parent_names = hdmi_pll_parents,
drivers/gpu/drm/msm/mdp/mdp4/mdp4_lvds_pll.c +1 -1
@@ -137,7 +137,7 @@ static int mpd4_lvds_pll_set_rate(struct clk_hw *hw, unsigned long rate, "pxo", }; -static struct clk_init_data pll_init = { +static const struct clk_init_data pll_init = { .name ="mpd4_lvds_pll" , .ops = &mpd4_lvds_pll_ops, .parent_names = mpd4_lvds_pll_parents,
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel