drm/bridge/adv7511: set the bridge type properly
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Mon, 20 Jul 2020 12:42:27 +0000 (15:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Aug 2020 13:35:36 +0000 (15:35 +0200)
commit1e1f8e41a922514d5a6b4dad2f288dd4a2a29c92
treeb300ee8fd62a2f12a6437753458865eb2a5c5096
parent4e72313d19b55a68e264c2d6acfd09649998d619
drm/bridge/adv7511: set the bridge type properly

[ Upstream commit f10761c9df96a882438faa09dcd25261281d69ca ]

After the drm_bridge_connector_init() helper function has been added,
the ADV driver has been changed accordingly. However, the 'type'
field of the bridge structure was left unset, which makes the helper
function always return -EINVAL.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Tested-by: Vinod Koul <vkoul@kernel.org> # tested on DragonBoard 410c
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200720124228.12552-1-laurentiu.palcu@oss.nxp.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c