summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-01-16 15:44:42 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-02-03 15:00:28 +0100
commit31b54a422b3f66f715a0963d1d3ce0c7678fb333 (patch)
treedd850b6f6c2843e89b4d8609aa769324fc363b89 /tools/perf/scripts/python
parent70bbf56aa82ca972be424ec110f9a7f4ab9ee732 (diff)
downloadlinux-31b54a422b3f66f715a0963d1d3ce0c7678fb333.tar.gz
linux-31b54a422b3f66f715a0963d1d3ce0c7678fb333.zip
media: i2c: imx290: Pass format and mode to imx290_calc_pixel_rate()
Avoid accessing the imx290 current_format and current_mode fields in imx290_calc_pixel_rate() to prepare for the removal of those fields. Among the two callers of the function, imx290_ctrl_update() has an explicit mode pointer already, and we can also give it a format pointer. Use those explicitly. While at it, inline the imx290_get_link_freq() function in imx290_calc_pixel_rate() as it is only called there. 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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions