aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-05-18 15:38:36 -0400
committerVille Syrjälä <ville.syrjala@linux.intel.com>2017-05-31 09:08:10 -0400
commit91110a4b64fe0bdbac084b79dbd5f10c458327e9 (patch)
treea74034a0915ad2a64c7331319c5eaf0b6de8315e
parentfb51cbfd4b2ee030b9021b91bca96fcf2cbba875 (diff)
drm/atomic: Consitfy mode parameter to drm_atomic_set_mode_for_crtc()
drm_atomic_set_mode_for_crtc() doesn't modify the passed mode, so let's make it const. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170518193837.393-1-ville.syrjala@linux.intel.com Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/drm_atomic.c2
-rw-r--r--include/drm/drm_atomic.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index e1637011e18a..77dcef00998c 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -328,7 +328,7 @@ static s32 __user *get_out_fence_for_crtc(struct drm_atomic_state *state,
328 * Zero on success, error code on failure. Cannot return -EDEADLK. 328 * Zero on success, error code on failure. Cannot return -EDEADLK.
329 */ 329 */
330int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, 330int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state,
331 struct drm_display_mode *mode) 331 const struct drm_display_mode *mode)
332{ 332{
333 struct drm_mode_modeinfo umode; 333 struct drm_mode_modeinfo umode;
334 334
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 8645dcdef031..0196f264a418 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -520,7 +520,7 @@ __drm_atomic_get_current_plane_state(struct drm_atomic_state *state,
520 520
521int __must_check 521int __must_check
522drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, 522drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state,
523 struct drm_display_mode *mode); 523 const struct drm_display_mode *mode);
524int __must_check 524int __must_check
525drm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state, 525drm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state,
526 struct drm_property_blob *blob); 526 struct drm_property_blob *blob);