media: imx: csis: Store pads format separately
authorJacopo Mondi <jacopo@jmondi.org>
Tue, 22 Feb 2022 21:46:43 +0000 (22:46 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 23 Feb 2022 07:53:08 +0000 (08:53 +0100)
commit5c0701a0e791868f7dbf20111c18e08ab6a867a9
treeee3fbf2e128c63b44c5f0c771ddb97f546ff1792
parent88c63ac741266bf3fc0812578199dfb16a3c31b5
media: imx: csis: Store pads format separately

As the formats on the sink and source pad might be different store
them separately.

The pad format is used to configure the image width and height in
mipi_csis_system_enable(). As the csis cannot downscale, using the sink
or the source one isn't relevant.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/imx/imx-mipi-csis.c