diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-11-24 12:47:02 -0500 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-11-28 10:48:58 -0500 |
commit | 79b95552336478b0465b74a1bda1f74239f5da3a (patch) | |
tree | 09ebfe65944965781e6b6ba26d1db9623af0a3b5 | |
parent | 63926ba85fdf943da8e08553acae98be3056fef9 (diff) |
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>
-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); | |||
418 | * should clear mode_changed during its ->atomic_check. | 418 | * should clear mode_changed during its ->atomic_check. |
419 | */ | 419 | */ |
420 | static inline bool | 420 | static inline bool |
421 | drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state) | 421 | drm_atomic_crtc_needs_modeset(const struct drm_crtc_state *state) |
422 | { | 422 | { |
423 | return state->mode_changed || state->active_changed || | 423 | return state->mode_changed || state->active_changed || |
424 | state->connectors_changed; | 424 | state->connectors_changed; |