Skip to content

Commit

Permalink
drm/tidss: Use drm_for_each_bridge_in_chain()
Browse files Browse the repository at this point in the history
Replace the manual encoder->bridge_chain walk with the
drm_for_each_bridge_in_chain() macro. Drivers should not touch the
bridge_chain field directly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Tested-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200222110718.26272-1-laurent.pinchart@ideasonboard.com
  • Loading branch information
Laurent Pinchart authored and Jyri Sarha committed Feb 28, 2020
1 parent b33b547 commit 905ad78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tidss/tidss_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static int tidss_encoder_atomic_check(struct drm_encoder *encoder,
* bridge timings, or from the connector's display_info if no
* bridge defines the timings.
*/
list_for_each_entry(bridge, &encoder->bridge_chain, chain_node) {
drm_for_each_bridge_in_chain(encoder, bridge) {
if (!bridge->timings)
continue;

Expand Down

0 comments on commit 905ad78

Please sign in to comment.