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)
commitc61b93fe51b1330cfc4d73084b924931bd65c8f0
tree7ea10a09f2cc4a88d78b7377a005cdcd7f37fd13
parent7ea7728387820a21a89a7c3845dbe60926f82dc4
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