]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: imx-mipi-csis: Simplify access to source pad
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 22 Aug 2025 00:27:22 +0000 (03:27 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Sun, 31 Aug 2025 09:10:06 +0000 (11:10 +0200)
commit0b6b9a0f68817cc92a25267585b30bbb02be61cf
tree0ea4dff428094aaf0dad4897fe3b5bea2438948a
parent6234d0df236ab1a71c6bd75e4f5fa15339d5272b
media: imx-mipi-csis: Simplify access to source pad

The mipi_csis_calculate_params() function needs to access the pad of the
connected source. The pad is already available in csis->source.pad, but
the function takes a convoluted path by getting the pad index and
indexing the source subdev's pads array. Simplify it.

No functional change is intended.

Link: https://lore.kernel.org/r/20250822002734.23516-3-laurent.pinchart@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/nxp/imx-mipi-csis.c