media: st-mipid02: Propagate format from sink to source pad
authorDaniel Scally <dan.scally@ideasonboard.com>
Tue, 2 May 2023 10:35:47 +0000 (11:35 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:23 +0000 (16:21 +0200)
commit6c01e6f3f27b7baee6264e490eb608939fec9bbf
tree7adefecf6d509c9c77d942ef96ebc3ef2b6cbfe5
parent306c3190b30d4d6a098888b9d7d4cefaa0ddcb91
media: st-mipid02: Propagate format from sink to source pad

When setting formats on the sink pad, propagate the adjusted format over
to the subdev's source pad. Use the MIPID02_SOURCE macro to fetch the
pad's try format rather than relying on the pad field of the format to
facilitate this - the function is specific to the source pad anyway.

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
[Sakari Ailus: Line wrap, fix subject]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/st-mipid02.c