]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: dw-hdmi: Use drm_atomic_helper_best_encoder()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 7 Jun 2016 11:48:15 +0000 (13:48 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Jun 2016 15:25:30 +0000 (17:25 +0200)
commit7813fcb3121459e3e07b7d2539d5ed454b264f9d
tree5fe2fbb1fa7d627b1d2cff0271e6f70859f86d9e
parentc2f5b1ef626b1118f5fa25a4b66c16d01cb557ea
drm/bridge: dw-hdmi: Use drm_atomic_helper_best_encoder()

We have a 1:1 relationship between connectors and encoders, which means
we can rely on the drm_atomic_helper_best_encoder() behavior.

We still have to explicitly assign ->best_encoder() to
drm_atomic_helper_best_encoder(), because the automated fallback to
drm_atomic_helper_best_encoder() when ->best_encoder() is NULL is only
available when the DRM device is using the atomic helpers, and this bridge
is compatible with non-atomic and atomic devices.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465300095-16971-21-git-send-email-boris.brezillon@free-electrons.com
drivers/gpu/drm/bridge/dw-hdmi.c