]> git.karo-electronics.de Git - linux-beck.git/commit
drm/atomic: use connector references (v3)
authorDave Airlie <airlied@redhat.com>
Wed, 27 Apr 2016 01:27:39 +0000 (11:27 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 5 May 2016 02:52:05 +0000 (12:52 +1000)
commitd2307dea14a4f14a4b5db01b6d40a30fa6117e6c
treee9aa6cf0376a35ab1f19fd4c0e31aa4491433cd5
parent0955c1250e9699b3bdc633d778710d219c61df66
drm/atomic: use connector references (v3)

Take a reference when setting a crtc on a connecter,
also take one when duplicating if a crtc is set,
and drop one on destroy if a crtc is set.

v2: take Daniel Stone's advice and simplify the
ref/unref dances, also take care of NULL as connector
to state reset.

v3: remove need for connector NULL check.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c