Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: ov5640: set correct default link frequency

current_link_freq field in ov5640_dev structure is link frequency,
not link frequency array index, so correct it.

Fixes: 3c28588f35d3 ("media: ov5640: Update pixel_rate and link_freq")
Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Guoniu.zhou and committed by
Mauro Carvalho Chehab
d7b41196 94ae1188

+2 -1
+2 -1
drivers/media/i2c/ov5640.c
··· 3817 3817 sensor->current_mode = 3818 3818 &ov5640_mode_data[OV5640_MODE_VGA_640_480]; 3819 3819 sensor->last_mode = sensor->current_mode; 3820 - sensor->current_link_freq = OV5640_DEFAULT_LINK_FREQ; 3820 + sensor->current_link_freq = 3821 + ov5640_csi2_link_freqs[OV5640_DEFAULT_LINK_FREQ]; 3821 3822 3822 3823 sensor->ae_target = 52; 3823 3824