]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Introduce generic probe function for component based masters.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 20 Oct 2015 09:23:12 +0000 (10:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Oct 2015 10:01:29 +0000 (12:01 +0200)
commit114fbd80b65d2b04fba601ed2b674d98a7fdfb8b
treef9503701ed3c2ad16f245c9b7b177ab02a42cdc0
parent3fd649d1219689969fcefd7d0802dc27f6a92773
drm: Introduce generic probe function for component based masters.

A lot of component based DRM drivers use a variant of the same code
as the probe function. They bind the crtc ports in the first iteration
and then scan through the child nodes and bind the encoders attached
to the remote endpoints. Factor the common code into a separate
function called drm_of_component_probe() in order to increase code
reuse.

Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1445332995-11212-2-git-send-email-Liviu.Dudau@arm.com
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_of.c
include/drm/drm_of.h