Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1692854

[PATCH v2 7/7] drm/stm: dsi: Constify phy ops structure

From Philippe CORNU <philippe.cornu@st.com>
Newsgroups linux.kernel
Subject [PATCH v2 7/7] drm/stm: dsi: Constify phy ops structure
Date 2017-07-20 14:10 +0200
Message-ID <u5irh-79y-41@gated-at.bofh.it> (permalink)
References <u5irf-79y-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
index 16ae00e..568c5d0 100644
--- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
+++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
@@ -261,7 +261,7 @@ static int dw_mipi_dsi_phy_init(void *priv_data)
 	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,
 };
-- 
1.9.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/7] drm/stm: Various cleanups Philippe CORNU <philippe.cornu@st.com> - 2017-07-20 14:10 +0200
  [PATCH v2 5/7] drm/stm: ltdc: add devm_reset_control & platform_get_ressource Philippe CORNU <philippe.cornu@st.com> - 2017-07-20 14:10 +0200
    Re: [PATCH v2 5/7] drm/stm: ltdc: add devm_reset_control &  platform_get_ressource Philipp Zabel <p.zabel@pengutronix.de> - 2017-07-20 14:40 +0200
  [PATCH v2 3/7] drm/stm: ltdc: Lindent and minor cleanups Philippe CORNU <philippe.cornu@st.com> - 2017-07-20 14:10 +0200
  [PATCH v2 6/7] drm/stm: ltdc: Cleanup rename returned value Philippe CORNU <philippe.cornu@st.com> - 2017-07-20 14:10 +0200
  [PATCH v2 7/7] drm/stm: dsi: Constify phy ops structure Philippe CORNU <philippe.cornu@st.com> - 2017-07-20 14:10 +0200
  [PATCH v2 4/7] drm/stm: ltdc: Constify funcs structures Philippe CORNU <philippe.cornu@st.com> - 2017-07-20 14:10 +0200
  [PATCH v2 1/7] drm/stm: drv: Rename platform driver name Philippe CORNU <philippe.cornu@st.com> - 2017-07-20 14:10 +0200
  Re: [PATCH v2 0/7] drm/stm: Various cleanups Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-07-20 14:50 +0200

csiph-web