Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge/adv7511: set the bridge type properly

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

authored by

Laurentiu Palcu and committed by
Sam Ravnborg
f10761c9 4ee48cc5

+1
+1
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
··· 1224 1224 1225 1225 adv7511->bridge.funcs = &adv7511_bridge_funcs; 1226 1226 adv7511->bridge.of_node = dev->of_node; 1227 + adv7511->bridge.type = DRM_MODE_CONNECTOR_HDMIA; 1227 1228 1228 1229 drm_bridge_add(&adv7511->bridge); 1229 1230