drm/atomic: Extract needs_modeset function
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Jun 2015 07:58:55 +0000 (09:58 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Jun 2015 15:25:01 +0000 (17:25 +0200)
commit2465ff6217f1b63e194cfd57018fa42abe7fcdf0
tree713019f70c7a0cb333f1223beb36a156650296f3
parent30c4cf3b53b4a09ca24603dd3c3119433e8ac9d5
drm/atomic: Extract needs_modeset function

We use the same check already in the atomic core, so might as well
make this official. And it's also reused in e.g. i915.

Motivated by Maarten's idea to extract a connector_changed state out
of mode_changed.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-By: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic.h