* [PATCH] drm/atomic: Constify drm_atomic_crtc_needs_modeset()
@ 2016-11-24 17:47 ville.syrjala
2016-11-24 18:01 ` Jani Nikula
0 siblings, 1 reply; 3+ messages in thread
From: ville.syrjala @ 2016-11-24 17:47 UTC (permalink / raw)
To: dri-devel
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
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>
---
include/drm/drm_atomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.7.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/atomic: Constify drm_atomic_crtc_needs_modeset()
2016-11-24 17:47 [PATCH] drm/atomic: Constify drm_atomic_crtc_needs_modeset() ville.syrjala
@ 2016-11-24 18:01 ` Jani Nikula
2016-11-28 16:31 ` Ville Syrjälä
0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2016-11-24 18:01 UTC (permalink / raw)
To: ville.syrjala, dri-devel
On Thu, 24 Nov 2016, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> 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>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> include/drm/drm_atomic.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/atomic: Constify drm_atomic_crtc_needs_modeset()
2016-11-24 18:01 ` Jani Nikula
@ 2016-11-28 16:31 ` Ville Syrjälä
0 siblings, 0 replies; 3+ messages in thread
From: Ville Syrjälä @ 2016-11-28 16:31 UTC (permalink / raw)
To: Jani Nikula; +Cc: dri-devel
On Thu, Nov 24, 2016 at 08:01:10PM +0200, Jani Nikula wrote:
> On Thu, 24 Nov 2016, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > 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>
>
> Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Pushed to drm-misc-next. Thanks for the review.
> > ---
> > include/drm/drm_atomic.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > 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;
>
> --
> Jani Nikula, Intel Open Source Technology Center
--
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-28 16:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24 17:47 [PATCH] drm/atomic: Constify drm_atomic_crtc_needs_modeset() ville.syrjala
2016-11-24 18:01 ` Jani Nikula
2016-11-28 16:31 ` Ville Syrjälä
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.