diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-05-18 21:38:36 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-05-31 15:08:10 +0200 |
commit | 91110a4b64fe0bdbac084b79dbd5f10c458327e9 (patch) | |
tree | a74034a0915ad2a64c7331319c5eaf0b6de8315e /drivers/gpu/drm/drm_atomic.c | |
parent | drm/arcgpu: Drop drm_vblank_cleanup (diff) | |
download | linux-91110a4b64fe0bdbac084b79dbd5f10c458327e9.tar.xz linux-91110a4b64fe0bdbac084b79dbd5f10c458327e9.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/drm_atomic.c')
-rw-r--r-- | drivers/gpu/drm/drm_atomic.c | 2 |
1 files changed, 1 insertions, 1 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, * Zero on success, error code on failure. Cannot return -EDEADLK. */ int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, - struct drm_display_mode *mode) + const struct drm_display_mode *mode) { struct drm_mode_modeinfo umode; |