media: tc358746: fix the pll calculating function
authorDuc-Long, Le <duclong.linux@gmail.com>
Sun, 15 Oct 2023 00:19:46 +0000 (20:19 -0400)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 5 Feb 2024 11:57:44 +0000 (12:57 +0100)
commit35546945e5e5cce825d2b92e1ecc3f4ac70ec1dc
treeeedf289016b0e439cb4bc1e927a047cda385d529
parentfeb8831be9d468ee961289c6a275536a1ee0011c
media: tc358746: fix the pll calculating function

Following formula of Pll_clk in 5.2 section, 50th page of
TC358746AXBG/748XBG/748IXBG Functional Specification Rev 1.1 document.
The formula of fout is as below:
fout = refclk * mul / (prediv * postdiv)

Remove "p" to avoid using 2 times of prediv in pll calculating function.

Signed-off-by: Duc-Long, Le <duclong.linux@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/tc358746.c