drm/atomic: Constify drm_atomic_crtc_needs_modeset()
Subsystems (2)
PATCH 1/1 drm/atomic: Constify drm_atomic_crtc_needs_modeset()
From: Ville Syrjälä <[email protected]>
drm_atomic_crtc_needs_modeset() doesn't change the passed in crtc state, so pass it as const.
Signed-off-by Ville Syrjälä <[email protected]>
--- include/drm/drm_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_atomic.h +1 -1
@@ -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;
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · On Thu, 24 Nov 2016, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
drm_atomic_crtc_needs_modeset()doesn't change the passed in crtc state, so pass it as const.Signed-off-by Ville Syrjälä <[email protected]>
Reviewed-by Jani Nikula <[email protected]>
Quoted 17 lines
--- include/drm/drm_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/drm_atomic.h +1
-1@@ -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;
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Ville Syrjälä
AppliedQuoted 9 lines · Jani Nikula
Quoted 6 lines · On Thu, 24 Nov 2016, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
drm_atomic_crtc_needs_modeset()doesn't change the passed in crtc state, so pass it as const.Signed-off-by Ville Syrjälä <[email protected]>Reviewed-by Jani Nikula <[email protected]>
Pushed to drm-misc-next. Thanks for the review.
Quoted 20 lines
Quoted 17 lines
--- include/drm/drm_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/drm_atomic.h +1
-1@@ -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;Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel