media: imx-pxp: extract helper function to setup data path
authorMichael Tretter <m.tretter@pengutronix.de>
Fri, 13 Jan 2023 09:54:09 +0000 (10:54 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 08:17:07 +0000 (09:17 +0100)
commit9fb41a05837583e28a9e8d7d7e4802626dcbc32a
tree339e7126bd229dc1ad64a12374fbf2491a7c80e5
parenta4a69d1386765102640a45002bff6f7db704486d
media: imx-pxp: extract helper function to setup data path

The driver must configure the data path through the Pixel Pipeline.

Currently, the driver is using a fixed setup, but once there are
different pipeline configurations, it is helpful to have a dedicated
function for determining the register value for the data path.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-pxp.c