On Wed, Jan 07, 2026 at 10:56:26AM +0100, Luca Ceresoli wrote: > imx8qxp_pixel_link_find_next_bridge() uses a sophisticated logic to find > the preferred next bridge, using an array with two supporting index > variables. This is more sophisticated than required because we only ever > need a pointer to the "current" bridge and to the "best so far" bridge. > > Additionally this logic is going to make the addition of proper refcounting > quite complex. > > Rewrite the logic using two drm_bridge pointers, which is by itself > slightly simpler and is a preparation step for introducing bridge > refcounting in a later commit. > > Also reword a comment to make it clearer. > > Signed-off-by: Luca Ceresoli <[email protected]> > --- > drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 23 +++++++++++------------ > 1 file changed, 11 insertions(+), 12 deletions(-) Reviewed-by: Liu Ying <[email protected]>
