diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-11-24 19:47:02 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-11-28 17:48:58 +0200 |
commit | 79b95552336478b0465b74a1bda1f74239f5da3a (patch) | |
tree | 09ebfe65944965781e6b6ba26d1db9623af0a3b5 /include/drm | |
parent | 63926ba85fdf943da8e08553acae98be3056fef9 (diff) | |
download | talos-obmc-linux-79b95552336478b0465b74a1bda1f74239f5da3a.tar.gz talos-obmc-linux-79b95552336478b0465b74a1bda1f74239f5da3a.zip |
drm/atomic: Constify drm_atomic_crtc_needs_modeset()
drm_atomic_crtc_needs_modeset() doesn't change the passed in
crtc state, so pass it as const.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1480009622-28127-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index 5d5f85db43f0..d6d241f63b9f 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -418,7 +418,7 @@ int drm_atomic_debugfs_cleanup(struct drm_minor *minor); * should clear mode_changed during its ->atomic_check. */ static inline bool -drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state) +drm_atomic_crtc_needs_modeset(const struct drm_crtc_state *state) { return state->mode_changed || state->active_changed || state->connectors_changed; |