drm/atomic: Handle funcs->best_encoder == NULL case
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 1 Jun 2016 16:03:37 +0000 (18:03 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jun 2016 06:27:39 +0000 (08:27 +0200)
commita0909cc574a94213423d45ffa12df2564e78679f
tree436dfe6d6a2fb987a2df60923798a4cc39f92d6f
parent66fd7a66e8b9e11e49f46ea77910f935c4dee5c3
drm/atomic: Handle funcs->best_encoder == NULL case

Fallback drm_atomic_helper_best_encoder() is 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().

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/20160601180337.28e0917b@bbrezillon
drivers/gpu/drm/drm_atomic_helper.c