media: ar0521: Rework PLL computation
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 4 Nov 2022 14:24:47 +0000 (14:24 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:44:06 +0000 (08:44 +0000)
commit3a51fd71b6f59610abad0e88315c20fd3e5b4b79
tree42bc5253680ce23ba0b38f00489eaa8cc235064b
parente4bdc249a9ac3c3721029609eccd51bf558a7f84
media: ar0521: Rework PLL computation

Rework the PLL computation procedure to take into account the currently
configured format bpp and the number of data lanes.

Comment the PLL configuration procedure with information provided by the
sensor chip manual and remove the hardcoded divider from the pixel clock
calculation.

Signed-off-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/ar0521.c