diff options
author | AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> | 2021-01-09 16:51:08 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-02-01 19:30:14 +0300 |
commit | 5c191fef4ce2fc4310d8174bd3861474919201e4 (patch) | |
tree | 5bb5b7b573c1590412d668cb1359a78fd942f012 /include/linux/fpga/fpga-bridge.h | |
parent | c703d5789590935c573bbd080a2166b72d51a017 (diff) | |
download | linux-5c191fef4ce2fc4310d8174bd3861474919201e4.tar.xz |
drm/msm/dsi_pll_10nm: Fix dividing the same numbers twice
In function dsi_pll_calc_dec_frac we are calculating the decimal
div start parameter by dividing the decimal multiple by the
fractional multiplier: the remainder of that operation is stored
to then get programmed to the fractional divider registers of
the PLL.
It's useless to call div_u64_rem to get the remainder and *then*
call div_u64 to get the division result, as the first is already
giving that result: let's fix it by just caring about the result
of div_u64_rem.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions