drm/bridge: Introduce drm_bridge_get_next_bridge()
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 3 Dec 2019 14:15:06 +0000 (15:15 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 9 Dec 2019 09:02:22 +0000 (10:02 +0100)
commitfadf872d9d9274a3be34d8438e0f6bb465c8f98b
treec6061fd017acd55b3c7145ff3ae0f482618a05ab
parentea099adfdf4bf35903dc1c0f59a0d60175759c70
drm/bridge: Introduce drm_bridge_get_next_bridge()

And use it in drivers accessing the bridge->next field directly.
This is part of our attempt to make the bridge chain a double-linked list
based on the generic list helpers.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191203141515.3597631-3-boris.brezillon@collabora.com
drivers/gpu/drm/drm_encoder.c
drivers/gpu/drm/mediatek/mtk_hdmi.c
drivers/gpu/drm/omapdrm/omap_drv.c
drivers/gpu/drm/omapdrm/omap_encoder.c
include/drm/drm_bridge.h