drm/atomic: Always call steal_encoder, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 3 Mar 2016 09:17:38 +0000 (10:17 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Mar 2016 10:04:27 +0000 (11:04 +0100)
commitff19b7867fcaa00638018e116c63aba75c4b07ba
tree7089e51a129104d3a7357086f02458acc30cb75c
parentb282e969b19997c8ff03f8ef9a6e765e7199093a
drm/atomic: Always call steal_encoder, v2.

There's no need to have a separate function to get the crtc
which is stolen, this can already be found when actually
stealing the encoder.

drm_for_each_connector already checks for connection_mutex, so
use that macro now.

Changes since v1:
- Do not check for NULL crtc in connector_state,
  this may happen when a crtc is disabled and its encoder stolen.
- Because of this, use connector->state->crtc instead of conn_state->crtc.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1456996662-8704-4-git-send-email-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c