media: imx-pxp: Pass pixel format value to find_format()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 13 Jan 2023 09:54:18 +0000 (10:54 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 08:19:56 +0000 (09:19 +0100)
commit8b57a21a77d8e9fac7ad1a542395c4a562571752
tree2a700c38eb24a308f27f9a85143106b537460f19
parentff89b9b425c86e91f8a840bf7e037302fb3ed7c1
media: imx-pxp: Pass pixel format value to find_format()

The find_format() function looks up format information for a given pixel
format. It takes a v4l2_format pointer, but only uses the contained
pixel format value. To prepare it for being used by callers that don't
have v4l2_format, modify it to take the pixel format value directly.

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