]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/omap: use drm_for_each_bridge_in_chain_from()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 8 Aug 2025 14:49:16 +0000 (16:49 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 16 Sep 2025 13:02:54 +0000 (15:02 +0200)
commit8e1e17416c8bd4ab8b03602828faa01fa212eec1
treeecbf43df89e92e77985febcd1c6547f43f2a8116
parent78f4eec62097754fed1b910544ff60ef10a76554
drm/omap: use drm_for_each_bridge_in_chain_from()

Use drm_for_each_bridge_in_chain_from _scoped() instead of an open-coded
loop based on drm_bridge_get_next_bridge() to ensure the bridge being
looped on is refcounted and simplify the driver code.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250808-drm-bridge-alloc-getput-for_each_bridge-v2-9-edb6ee81edf1@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/omapdrm/omap_encoder.c