Laurent Pinchart 70bbf56aa8 media: i2c: imx290: Access link_freq_index directly
The imx290_get_link_freq_index() function hides the fact that it relies
on the imx290 current_mode field, which obfuscates the code instead of
making it more readable. Inline it in the callers, and use the mode
pointer we already have in imx290_ctrl_update() instead of using the
current_mode field.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-02-03 14:59:53 +01:00
..
2022-12-13 19:29:45 -08:00
2022-12-16 03:54:54 -08:00
2022-03-18 05:58:35 +01:00
2022-03-23 14:51:35 -07:00
2022-12-13 11:36:58 -08:00
2022-03-12 16:59:52 +01:00