]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: imx8qxp-pixel-link: imx8qxp_pixel_link_find_next_bridge: return int,...
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 7 Jan 2026 09:56:28 +0000 (10:56 +0100)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 29 Jan 2026 17:44:03 +0000 (18:44 +0100)
commit4eda1d5fe99db2a71da0156387b7b69e8e0dc32f
treedb0d4d6c2e0594cd3bf47ef85b6edd4ec0d5b129
parent42bb487369e56f8f07c82ac11fe771ba2b70cd68
drm/bridge: imx8qxp-pixel-link: imx8qxp_pixel_link_find_next_bridge: return int, not ERR_PTR

In preparation for using bridge->next_bridge, we need to ensure that it
will never contain anything but NULL or a valid bridge pointer. Current
code stores an ERR_PTR when imx8qxp_pixel_link_find_next_bridge() errors
out. Instead of fixing that after the facts in the caller, change the
function to internally set pl->next_bridge and just return an int error
value.

No functional changes.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Acked-by: Liu Ying <victor.liu@nxp.com>
Link: https://patch.msgid.link/20260107-drm-bridge-alloc-getput-drm_of_find_bridge-v4-3-a62b4399a6bf@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c