drm/atomic: Introduce state->obj backpointers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Nov 2014 14:49:39 +0000 (15:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Dec 2014 19:23:23 +0000 (20:23 +0100)
commit07cc0ef67fa873c8d21e0b626d57753bfd190095
tree44beb89d906d8ad625b222f3b7ea4feb87666b67
parentb4274fbee6fc7ca3dd1cc786456ec6fbc14f864d
drm/atomic: Introduce state->obj backpointers

Useful since this way we can pass around just the state objects and
will get ther real object, too.

Specifically this allows us to again simplify the parameters for
set_crtc_for_plane.

v2: msm already has it's own specific plane_reset hook, don't forget
that one!

v3: Fixup kerneldoc, reported by 0-day builder.

Cc: Rob Clark <robdclark@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com> (v2)
Tested-by: Rob Clark <robdclark@gmail.com> (v2)
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_plane_helper.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
include/drm/drm_atomic.h
include/drm/drm_crtc.h