media: i2c: imx290: Factor out format retrieval to separate function
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 16 Oct 2022 06:15:21 +0000 (09:15 +0300)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 27 Oct 2022 11:38:03 +0000 (14:38 +0300)
commitb25537efeea981b9a3c99c4666e8d240833993f6
tree5821e57b584a2cfd12d5333d9cc506ed9a5d136b
parent0b274ef2208dc8fbc09f43cdee99f06e644a9bc5
media: i2c: imx290: Factor out format retrieval to separate function

The driver duplicates the same pattern to access the try or active
format in multiple locations. Factor it out to a separate function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/media/i2c/imx290.c