diff options
| author | Laurent Pinchart <[email protected]> | 2023-01-16 15:44:43 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-02-03 15:00:57 +0100 |
| commit | 693b5cb598cc787dd61b8b626bfd45c26b5b1290 (patch) | |
| tree | 0f39801eb9e2e434ee935a3236252a4911fa4233 /tools/perf/scripts/python | |
| parent | 31b54a422b3f66f715a0963d1d3ce0c7678fb333 (diff) | |
media: i2c: imx290: Compute pixel rate and blanking in one place
The hblank, vblank, pixel rate and link frequency values and limits are
currently computed when creating controls, in imx290_ctrl_init(), and
updated in imx290_ctrl_update(). This duplicates the logic in different
places. Simplify the code by setting the control values and limits to
hardcoded values when creating the controls, and call
imx290_ctrl_update() to then update them.
Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Alexander Stein <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions