Skip to content

Commit 89a15e6

Browse files
pcornuBenjamin-Gaignard
authored andcommitted
drm/stm: dsi: Constify phy ops structure
Constify dw_mipi_dsi_stm_phy_ops as these ops are not supposed to change at runtime. Signed-off-by: Philippe CORNU <[email protected]> Reviewed-by: Benjamin Gaignard <[email protected]> Signed-off-by: Benjamin Gaignard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent dc5e0cd commit 89a15e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/stm/dw_mipi_dsi-stm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ dw_mipi_dsi_get_lane_mbps(void *priv_data, struct drm_display_mode *mode,
261261
return 0;
262262
}
263263

264-
static struct dw_mipi_dsi_phy_ops dw_mipi_dsi_stm_phy_ops = {
264+
static const struct dw_mipi_dsi_phy_ops dw_mipi_dsi_stm_phy_ops = {
265265
.init = dw_mipi_dsi_phy_init,
266266
.get_lane_mbps = dw_mipi_dsi_get_lane_mbps,
267267
};

0 commit comments

Comments
 (0)