Skip to content

Commit

Permalink
media: ov5640: set correct default link frequency
Browse files Browse the repository at this point in the history
current_link_freq field in ov5640_dev structure is link frequency,
not link frequency array index, so correct it.

Fixes: 3c28588 ("media: ov5640: Update pixel_rate and link_freq")
Signed-off-by: Guoniu.zhou <[email protected]>
Acked-by: Jacopo Mondi <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Guoniu.zhou authored and mchehab committed Dec 6, 2022
1 parent 94ae118 commit d7b4119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/i2c/ov5640.c
Original file line number Diff line number Diff line change
Expand Up @@ -3817,7 +3817,8 @@ static int ov5640_probe(struct i2c_client *client)
sensor->current_mode =
&ov5640_mode_data[OV5640_MODE_VGA_640_480];
sensor->last_mode = sensor->current_mode;
sensor->current_link_freq = OV5640_DEFAULT_LINK_FREQ;
sensor->current_link_freq =
ov5640_csi2_link_freqs[OV5640_DEFAULT_LINK_FREQ];

sensor->ae_target = 52;

Expand Down

0 comments on commit d7b4119

Please sign in to comment.