]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Fix remaining places where !funcs->best_encoder is valid
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 7 Jun 2016 11:47:56 +0000 (13:47 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 7 Jun 2016 14:38:58 +0000 (16:38 +0200)
commit809f5ef58c836701291fdfe5bb128e7afe764896
tree7ea10a09f2cc4a88d78b7377a005cdcd7f37fd13
parentc0c6cc346235468530d3cadc99c7c3d6064ab899
drm/atomic: Fix remaining places where !funcs->best_encoder is valid

Adapt drm_pick_crtcs() and update_connector_routing() to fallback to
drm_atomic_helper_best_encoder() if funcs->best_encoder() is NULL so
that DRM drivers can leave this hook unassigned if they know they want
to use drm_atomic_helper_best_encoder().

Update the vtables documentation accordingly.

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-2-git-send-email-boris.brezillon@free-electrons.com
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_modeset_helper_vtables.h