drm/stm: dsi: Constify phy ops structure
authorPhilippe CORNU <philippe.cornu@st.com>
Thu, 20 Jul 2017 12:05:57 +0000 (14:05 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 26 Jul 2017 13:02:17 +0000 (15:02 +0200)
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
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c

index 16ae00e5da9dc8545ee0d254ec745c379647f26d..568c5d0461eab411171d4386c241cbb46e02991d 100644 (file)
@@ -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,
 };