Skip to content

Commit

Permalink
drm/stm: dsi: Constify phy ops structure
Browse files Browse the repository at this point in the history
Constify dw_mipi_dsi_stm_phy_ops as these ops are not supposed
to change at runtime.

Signed-off-by: Philippe CORNU <philippe.cornu@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1500552357-29487-8-git-send-email-philippe.cornu@st.com
  • Loading branch information
Philippe CORNU authored and Benjamin Gaignard committed Jul 26, 2017
1 parent dc5e0cd commit 89a15e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ dw_mipi_dsi_get_lane_mbps(void *priv_data, struct drm_display_mode *mode,
return 0;
}

static struct dw_mipi_dsi_phy_ops dw_mipi_dsi_stm_phy_ops = {
static const struct dw_mipi_dsi_phy_ops dw_mipi_dsi_stm_phy_ops = {
.init = dw_mipi_dsi_phy_init,
.get_lane_mbps = dw_mipi_dsi_get_lane_mbps,
};
Expand Down

0 comments on commit 89a15e6

Please sign in to comment.