Skip to contentSkip to conversation

drm/atomic: Constify drm_atomic_crtc_needs_modeset()

PATCH In review [email protected] 2 participants 3 messages Nov 24, 2016 – Nov 28, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 include/drm/drm_atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_atomic.h +1 -1
index 5d5f85db43f0..d6d241f63b9f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

Quoted 17 lines
---
 include/drm/drm_atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_atomic.h +1 -1
index 5d5f85db43f0..d6d241f63b9f 100644
@@ -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
author Applied
#2 lore raw
Quoted 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.

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
index 5d5f85db43f0..d6d241f63b9f 100644
@@ -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