]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/atomic: Consitfy mode parameter to drm_atomic_set_mode_for_crtc()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 18 May 2017 19:38:36 +0000 (22:38 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 31 May 2017 13:08:10 +0000 (16:08 +0300)
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>
drivers/gpu/drm/drm_atomic.c
include/drm/drm_atomic.h

index e1637011e18ab0bf589238171da88eb8edb6586e..77dcef00998c6086d528b7a977f11b301cb0a52a 100644 (file)
@@ -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;
 
index 8645dcdef0317c0a5a3073a612f3eb34a38b9221..0196f264a418a1d0885cd5cb4ebbf3ab56f3c91e 100644 (file)
@@ -520,7 +520,7 @@ __drm_atomic_get_current_plane_state(struct drm_atomic_state *state,
 
 int __must_check
 drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state,
-                            struct drm_display_mode *mode);
+                            const struct drm_display_mode *mode);
 int __must_check
 drm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state,
                                  struct drm_property_blob *blob);