media: ov5640: set correct default link frequency
authorGuoniu.zhou <guoniu.zhou@nxp.com>
Fri, 25 Nov 2022 09:20:24 +0000 (09:20 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 6 Dec 2022 07:20:48 +0000 (07:20 +0000)
commitd7b41196927ba2a2b5badad1a85f9087eb90b076
treeb16abc1923670ca1b9225cf118254f8bd10c7a28
parent94ae11885fae1717f2017cb96ceef5d0f6d6dd4a
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>
drivers/media/i2c/ov5640.c