path: root/drivers/gpu/drm/msm/dsi/dsi_manager.c
diff options
authorLaurent Pinchart <>2018-04-06 17:39:01 +0300
committerLaurent Pinchart <>2019-01-14 03:51:14 +0200
commit63f8f3badf799c8b63ff33a489886bc138ce5d09 (patch)
treeb78e60a8f136b64c8daa624bc17996ff192b088f /drivers/gpu/drm/msm/dsi/dsi_manager.c
parente3d093070eb0b5e3df668d3eb04100ea79343c65 (diff)
drm: bridge: Constify mode arguments to bridge .mode_set() operation
The mode and ajusted_mode passed to the bridge .mode_set() operation should never be modified by the bridge (and are not in any of the existing bridge drivers). Make them const to make this clear. Signed-off-by: Laurent Pinchart <> Reviewed-by: Daniel Vetter <>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/dsi_manager.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c
index 80aa6344185e..bdb063b2dc4a 100644
--- a/drivers/gpu/drm/msm/dsi/dsi_manager.c
+++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c
@@ -527,8 +527,8 @@ disable_phy:
static void dsi_mgr_bridge_mode_set(struct drm_bridge *bridge,
- struct drm_display_mode *mode,
- struct drm_display_mode *adjusted_mode)
+ const struct drm_display_mode *mode,
+ const struct drm_display_mode *adjusted_mode)
int id = dsi_mgr_bridge_get_id(bridge);
struct msm_dsi *msm_dsi = dsi_mgr_get_dsi(id);