diff options
| author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2018-04-06 10:39:01 -0400 |
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2019-01-13 20:51:14 -0500 |
| commit | 63f8f3badf799c8b63ff33a489886bc138ce5d09 (patch) | |
| tree | b78e60a8f136b64c8daa624bc17996ff192b088f /drivers/gpu/drm/stm | |
| parent | e3d093070eb0b5e3df668d3eb04100ea79343c65 (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 <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/stm')
| -rw-r--r-- | drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index a514b593f37c..a672b59a2226 100644 --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | |||
| @@ -215,7 +215,7 @@ static int dw_mipi_dsi_phy_init(void *priv_data) | |||
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | static int | 217 | static int |
| 218 | dw_mipi_dsi_get_lane_mbps(void *priv_data, struct drm_display_mode *mode, | 218 | dw_mipi_dsi_get_lane_mbps(void *priv_data, const struct drm_display_mode *mode, |
| 219 | unsigned long mode_flags, u32 lanes, u32 format, | 219 | unsigned long mode_flags, u32 lanes, u32 format, |
| 220 | unsigned int *lane_mbps) | 220 | unsigned int *lane_mbps) |
| 221 | { | 221 | { |
